Py3 comparison fix