Add Python 2.6 support in the c2ctool

fix #1032