The game crashes if I try to decompress data

I compress some bytes in python

import lzma

some_bytes = b"HELLO WORLD"
compressed_data = lzma.compress(some_bytes, format=lzma.FORMAT_ALONE)
with open("python_compressed.txt", "wb") as f:
    f.write(compressed_data) # output: "]  € ÿÿÿÿÿÿÿÿ $EÏrÙÉB(\­²‹dÿûx  "

But when I try to decompress it with util.Decompress the game just crashes. Reverse way works fine. I compress some data with util.Compress and I can decompress it in python.
Am I doing something wrong or what?

Oh, come on!

What are you trying to compress? A file? How big is it? What does it contain?