fix wsgi.py so it doesn't throw a 500