Some commonly shared code for Flask, MongoEngine, and Python apps