fix python 2.6 (sys.version_info is tuple)