Close the TarFile. In write-mode, two finishing zero blocks are appended to the archive.
tarfile/TarFile.close
TarFile.close