Fix python26

Needed for python2.6 compatibility.