Using sys.version_info instead of sys.version to determine python version