Fix python2.6 vs python2.7 error.