huffman using python