A huffman coding implementation in python