For consistency with the codebase, I prefer to use the `sys.version` form... later we could change this behaviour in all the occurrences of `sys.version_info[0] == 3` non related with this PR.