WSGI Handler for mod_python

In the PSE repository is a WSGI implementation for mod_python. It is not written specifically for PSE, but rather as a general WSGI implementation, as I understand the PEP. As such, there may be some errors or omissions in the implementation, and I would be grateful if they are pointed out.

The source is available in /trunk/wsgi_handler.py. You can set up any WSGI application by configuring mod_python with a section similar to this:

PythonHandler wsgi_handler
PythonOption WSGI.Application pse_handler::wsgi_handler
AddHandler python-program .pt

Actually, you can use anything in place of pse_handler::wsgi_handler you like, following the same rules as defining a handler for mod_python itself. The only difference is that the object part of the specification is not optional. You must specify a function or class as the target object to run as the WSGI application, which will accept the environ and start_response arguments according to the specification.