necesita utilizar el módulo tarfile. Específicamente, usa una instancia de la clase TarFile para acceder al archivo y luego accede a los nombres con TarFile.getnames ()
| getnames(self)
| Return the members of the archive as a list of their names. It has
| the same order as the list returned by getmembers().
Si, en cambio, desea leer el contenido , utilice este método
| extractfile(self, member)
| Extract a member from the archive as a file object. `member' may be
| a filename or a TarInfo object. If `member' is a regular file, a
| file-like object is returned. If `member' is a link, a file-like
| object is constructed from the link's target. If `member' is none of
| the above, None is returned.
| The file-like object is read-only and provides the following
| methods: read(), readline(), readlines(), seek() and tell()