One thing you might consider doing, is displaying all the variables using a shell command to output/display all the environment variables before the python command. Then you could compare the variables for the case where it works with the variables for the case where it doesn’t work. This is what I would do because there is a possibility that one of the variables that it needs is missing.
Oh right. That makes total sense. I forgot that 'ENV_PATH' is just another global KM variable. And I wasn't explicitly including it, which would make sense why the action could see my python3 install!!