fix(render): iter 107 — write rewrite_dvi.py via printf (heredoc broke YAML)
iter 106 confirmed python failed on every shim invocation with
'IndentationError'. iter 107's first attempt used a quoted heredoc
('PYEOF') to write the python to a file, but the 0-indented python
lines exited the YAML block scalar and broke pipeline parsing
('could not find expected':'').
iter 107 (v2): use 'printf %s\n' with each python line as a
single-quoted argument. All lines stay within the YAML block scalar
(6-space leading); printf assembles them with newlines into
/tmp/bin/rewrite_dvi.py. Tested locally that the generated file
py_compiles cleanly.
The shim then invokes 'python3 /tmp/bin/rewrite_dvi.py $tmp' (file,
not -c). Same length-preserving LM->CM substitution.
[AGENT: kael]