Now works with uwsgi