fixed usage after pymongo api change