Boilerplate code for Flask applications deployed on Heroku