uwsgi support
refactoring
removed unused import