Update Python detection.
Use new CMake facilities for detecting Python.
Consolidate Python detection in the main CMakeLists.txt before the first usage in a subdirectory. Use FindPython3.cmake instead of FindPythonInterp.cmake. Populate the legacy PYTHON_EXECUTABLE variable for compatibility.
Closes #2998 (closed)
Edited by M. Eric Irrgang