ui: fix Python-free build
Merge pull request #1891 from fontforge/pythonless

ui: fix Python-free build