import re
from pathlib import Path
from zipfile import ZipFile

name = 'xl/worksheets/sheet1.xml'
with ZipFile('seed.xlsx') as source, ZipFile('cache-fixture.xlsx', 'w') as dest:
    for entry in source.infolist():
        body = source.read(entry)
        if entry.filename == name:
            scope = re.compile(rb'(<c\b[^>]*\br="C4"[^>]*>.*?</c>)', re.S)
            matches = scope.findall(body)
            assert len(matches) == 1, matches
            assert b't="n"' in matches[0], matches
            modified, count = re.subn(rb'<v>[^<]*</v>', b'', matches[0])
            assert count == 1
            body = body.replace(matches[0], modified, 1)
            Path('fixture-sheet.xml').write_bytes(body)
        dest.writestr(entry, body)
