reordered app.py
added dir for initialization