bugfix for Python2.6 (tarfile and context manager)