fix for python2.6
Merge branch 'hotfix-python26'