fixed uwsgi and virtualenv bugs