Can it simply use %python_binary%? For example, in a docker container we run, only python3 is available.