It's not a Python thing. It's a web development thing. URLs should typically correspond to one resource.
That's an OK case for rewriting but quite different from the previous example. Depending on how necessary it is to avoid an extra URL segment, you could easily set it up as myserver.com/user/username without rewriting. I recall a thread awhile back on how to implement myserver.com/username and don't recall the exact outcome.