Tricks for pymongo