fix python2.6