Should fix build on systems where only python3 exist, but not python. Or python, but not python3.

Please test! 

(it was on top of 

Check for python3 in addition to python3.9 and python3.12

but I do not think it needed anymore with this patch)