An x86 emulator in python for running decompression functions