'Attempt to connect to a writable server, or return False.'

def _is_writable(self):

    topology = self._get_topology()
    try:
        svr = topology.select_server(writable_server_selector)
        return svr.description.is_writable
    except ConnectionFailure:
        return False
