fix for python2.6