You need to remove the `import tarfile` from line 6 then ;)