Fix lzma decompression

Due to a (yet unfiled) bug in Python's lzma library, we must perform lzma decompression manually instead of relying on the LZMAFile helper class.