Python Huffman code decode