Fix sys.version_info lookup for python 2