Python version string extraction hardening (#4895)

Only consider last line of $POL_PYTHON --version (stderr) output