human
I wrote the below code

    def get_master():
        try:
            return topology.select_server(writable_server_selector, 0)
        except ConnectionFailure:
            return None
    return wait_until(get_master, 'find    master')

What's a good function header?
assistant
#Here is Python program to find    master')
.

def wait_for_master(topology):