Added fixes that will allow Flask app to connect to Heroku ports