Merging from flask-appengine-template.