python 2.6 support

--HG--
extra : rebase_source : 78952b01d93e26139ffcdcf44bdba48f3d9b1303