LZW Variable Length Decompressor in Python