Huffman tree Python implementation
Merging is a thing a node and only a node does, using that function on a non-node is meaningless so include it in the node class:

class Node:
    ...
    def merge(self, other_node):


Now the person that uses your code knows that merge works for nodes and nothing else and the code has more structure.