PyMongo support for Flask applications