reorganizing flask app for bigger applications