Revert "use os.system to call xz"

This reverts commit a9a1ac582d2cb8ef33a449c22ee9fdbb9f842fb2.