Make it possible to run in uwsgi.