Fix Python2.6 support.