def untar(path, fname, deleteTar=True):
    '\n    Unpacks the given archive file to the same directory, then (by default)\n    deletes the archive file.\n    '
    print(('unpacking ' + fname))
    fullpath = os.path.join(path, fname)
    shutil.unpack_archive(fullpath, path)
    if deleteTar:
        os.remove(fullpath)
Unpacks the given archive file to the same directory, then (by default)
deletes the archive file.
def untar(path, fname, deleteTar=True):
    '\n    Unpacks the given archive file to the same directory, then (by default)\n    deletes the archive file.\n    '
    print(('unpacking ' + fname))
    fullpath = os.path.join(path, fname)
    shutil.unpack_archive(fullpath, path)
    if deleteTar:
        os.remove(fullpath)