Support new pyMongo drivers.