added uwsgi support to main.py