Python26 support

can we change the code so it will work in python2.6