added flask class that can start a gunicorn server