add wsgi_workaround.py
small fixes for production