I get the following error when running the script with python 3.11 on MacOS (m2 chip)
❯ python parse.py mk1_dos/GRAPHICS/RAIDEN.GRA
Number of palette colors: 63575
Processing frame nr : 0
Compressed data offset: 0x1f128
Decompression error, exiting.
I tried a number of GRA files and got the same result