Made a special idp version compatible with uwsgi/gunicorn usage.