Make it work with gunicorn