pythonui.c: fix a compiler warning for unused code in non-collab build