Set up a flask framework