More fixes to wsgi scripts