set up flask and directory structure