yes, wsgi is such pain in the ass

found this gem

While it is indeed now possible to utilize greenlets to convert multiple function calls into yields in a generator, it's still something you would not do.

In general JSON via HTTP or zeromq is so much cooler and more flexible than WSGI could ever be.

Gevent is much better