Fix support of Py3.