Removed the 'with' statement for opening the tarfile

Updated to remove the 'with' statement, which 2.6 has problems with.