Fixed WSGI compatability