flask demo built following http://flask.pocoo.org/ tutorial