tests: Check for appropriate Python executable