Flask app and template