fix for Py<=2.5