fixed for Py3