how to create a lzma file in python and add files
Use PyLZMA.
1st result for Google: python lzma.
python lzma