The tarfile library is able to read gzipped tar files. You should look at the examples here:
http://docs.python.org/2/library/tarfile.html#examples
The first example might accomplish what you want. It extracts the content of the archive to the current working directory:
import tarfile
tar = tarfile.open("sample.tar.gz")
tar.extractall()
tar.close()