build: use `find_package(Python3)`
This bumps the CMake minimum version to 3.12 to enable the use of
FindPython3. This allows the replacement of the python3 with a
CMake variable defined by the module. This avoids the additional
handling for python being renamed to python3.
This partially resolves #2049 (closed).