More Py3 fixes unearthed by uibuilderdemo.