Don't shadow global vars in test method.
Fix start_replica_set() test method for Python 3.