Reorganzing and getting Flask to a working state