Huffman Code In Python For Games