Creating proper flask app