Huffman Coding in Python

Recall that Huffman coding is a compression technique that uses a variable-length code constructed from the frequency counts of the objects being represented. In this program you will use Python to build a Huffman tree for a given list of (item, frequency) pairs.

Your top-level function huffman(frequency_list) should take a list of (item,frequency) tuples and return a Huffman tree of items built using those tuples. Some things to think about: