python2.6 compliant