Some extensions to pymongo