Web programming Python
<p>I'm a amateur developer with a little experience in PHP.</p>

<p>I recently learnt Python, I've to admit that it is awesome as a programming language and its great libraries, but using that for web development seems to be a big pain in the ass. As far as what i read, I've to use CGI, mod_wsgi, etc. to deploy (http://docs.python.org/howto/webservers.html), Restart the server to see the changes (http://stackoverflow.com/questions/581038/python-web-programming)</p>

<p>My question is, Python being used so widely for web development, Why cant it be as simple as PHP?</p>

<p>ie i would love to write index.py:</p>

<pre><code>print """
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Hello world&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
Hello world
&lt;/body&gt;
&lt;/html&gt;"""
</code></pre>
