Fix for Py3.