Fix flask app def