python 2.6 compat - do not use tarfile.open as a context manager