[compat] Fix python version check for compat_shlex_split