I\'ve been playing around with my own webserver (Apache+Ubuntu) and python. From what I\'ve seen there are 3(?) main ways of doing this:
Don't use CGI. It's inefficient. Spawning a new process for each request. No thanks
Dont't spend much time with mod_python
Use mod_wsgi.
If you want to write CGI-like stuff without a framework, use mod_wsgi anyway. The WSGI standard (PEP 333) is essential for creating web applications in an easy, interchangeable, reusable, plug-and-playable way.