Use lzma module on Python >= 3.3 for unpacking and add tests.