fix for Py2.7