Sort of working port to uWSGI and Python