support not only python2.7 but python2.6