Monkey patch tarfile