fix interface changes from pymongo