changes for new wsgi.py