python2.6 compability fix