sys.version_info.major is not py2.6 compatible