async def send_to_all_except(self, messages: List[Message], node_type: NodeType, exclude: bytes32):
    for (_, connection) in self.all_connections.items():
        if ((connection.connection_type is node_type) and (connection.peer_node_id != exclude)):
            for message in messages:
                (await connection.send_message(message))
async def send_to_all_except(self, messages: List[Message], node_type: NodeType, exclude: bytes32):
    for (_, connection) in self.all_connections.items():
        if ((connection.connection_type is node_type) and (connection.peer_node_id != exclude)):
            for message in messages:
                (await connection.send_message(message))