Work around Py2/3 differences.