Refactored app.py interfaces to take a flask application and configuration