Make run.py compatable with wsgi containers