Added compability for Py2.6