make mongo_replica_set_client compatible with Py3