fix the wsgi application to make it work with apache