Think about Python as a versatile language. While most frameworks out there tend to make code management and development a bit easier in one way or the other, you can still do web development without relying on them (a bit cumbersome though). WSGI is the way to go if you want to dive into it. Set up apache with mod_wsgi and look into it.

@narutoroot: Yes, PHP is great for starting with web development stuff, but I find it less versatile at times when I wish to do stuff using it on the server side. Python wins there undoubtedly.