Flaskify

For #267