pymongo son optimizations