class MyWSGIHandler(BaseHandler):

    def __init__(self, apachereq):
        BaseHandler.__init__(self)
self.apachereq = apachereq

def _write(self, data):
    self.apachereq.write(data)
wsgi_app = create_your_wsgi_app()

def handler(req):
    pass
deploying a WSGI application on mod_python