refactoring for better compatibility with uwsgi and other application servers
Merge pull request #56 from dukhlov/master

refactoring for better compatibility with uwsgi and other application se...