Add development mode to flask app