fix issue with py2.6