Implementing the huffman code compression algorithm in Python.