Support pymongo 2.3