Fix the python tests that depend of having the correct version of Python installed on the build system.