changing how flask runs to match heroku example