def METHOD_NAME(name, ova_file, data):
    print("writing file: %s" % name)
    tar_info = create_tar_info(name, len(data))
    buf = (tar_info.tobuf() if python2 else
           tar_info.tobuf(format=tarfile.GNU_FORMAT))
    ova_file.write(buf)
    ova_file.write(data.encode())
    pad_to_block_size(ova_file)