Saving state in Flask app.
Fleshing out Flask version.