Improved python2.6 compatibility with sys.version_info tuple.