But, of course, you can use Python to generate HTML for a web browser. For example, Google does this for its help pages:
http://www.google.com/support/webmas...83&ctx=sibling
Note the '.py' in the URL.
You can make browser-based games in Python this way, if you're really ambitious. But you need to have a clear understanding of what exactly CGI is, and a fundamental grasp on how the web works, before you can tackle such a thing.