fix for py2.6