Fix for python2.6