two small Py3 fixes