Fix Py3 regression