set up flask and templating