def establish_worker_connections(self):
    'Return a shuffled list of connections that are alive, and try to\n        reconnect to dead connections if necessary.'
    self.randomized_connections = list(self.connection_list)
    random.shuffle(self.randomized_connections)
    output_connections = []
    for current_connection in self.randomized_connections:
        try:
            valid_connection = self.establish_connection(current_connection)
            output_connections.append(valid_connection)
        except ConnectionError:
            pass
    return output_connections
Return a shuffled list of connections that are alive, and try to
reconnect to dead connections if necessary.
def establish_worker_connections(self):
    'Return a shuffled list of connections that are alive, and try to\n        reconnect to dead connections if necessary.'
    self.randomized_connections = list(self.connection_list)
    random.shuffle(self.randomized_connections)
    output_connections = []
    for current_connection in self.randomized_connections:
        try:
            valid_connection = self.establish_connection(current_connection)
            output_connections.append(valid_connection)
        except ConnectionError:
            pass
    return output_connections