cmake: Port from FindPythonInterp to FindPython3
The former has been deprecated since cmake 3.12 and fails to load with 3.37 if CMP0148 is set to NEW [1].
[1] https://cmake.org/cmake/help/latest/policy/CMP0148.html
While at it, also adjust to the current CMake coding style in a second commit.