flask-appropriate file structure and associated changes