We have some utility functions (somewhere) that take care of tar files.  Even if not, there's always the [standard lib's ``tarfile`` module.](http://docs.python.org/release/2.6.8/library/tarfile.html?highlight=tar#module-tarfile)