Fixed double run of app
Use the before_first_request override to overcome problem while still having debug = True