A WSGI server based on scgi_server(http://python.ca/scgi/).
from scgiwsgi import WSGIServer
from yourapp import application
WSGIServer(application).run(port=4000, max_children=5)
pip install scgiwsgi
location / {
include scgi_params;
scgi_pass localhost:4000;
}