Per-frame UI callbacks (OnUpdate/OnRender/...) looked up methods with PyObject_GetAttrString, building a new PyString each call. Names are now interned once and cached; Py_AtExit drops the cache so a Py_Finalize/Py_Initialize cycle never reuses stale objects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>