Modified huffman.py so that compression and decoding works as intended.