title: Python tarfile progress output?
body: <p>I'm using the following code to extract a tar file:</p>
  
  <pre><code>import tarfile
  tar = tarfile.open("sample.tar.gz")
  tar.extractall()
  tar.close()
  </code></pre>
  
  <p>However, I'd like to keep tabs on the progress in the form of which files are being extracted at the moment. How can I do this?</p>
  
  <p>EXTRA BONUS POINTS: is it possible to create a percentage of the extraction process as well? I'd like to use that for tkinter to update a progress bar. Thanks!</p>