constants moved to __init__.py
app created and returned in a function instead of a variable