Fix build with broken nondefault python.
PR: 251343 Submitted by: Christian Ullrich <chris _ chrullrich.net>