Haven't looked at Gentoo in a longgg time, didn't know they used Python scripting for booting. Ouch.
They did! During the early OpenRC era (2005-2009).
Now OpenRC is fully written in C and POSIX-compliant shell, making it usable on BSD and Linux systems.
However, the core part of OpenRC was weak, it's the part that handles the dependency management and the init script parsing.
This stuff works by scanning the runlevels, building a dependency graph, then starting the needed service scripts.
So, for that stuff, Python was mainly used for as dependency solver at run-time, re-using part of the code already used for "emerge".
Dunno what next, at some point they introduced "runscript", then "openrc-run", and then "systemD" as option.
All things for which it was not always easy or possible to compile.
So I used the old system, before replacing it completely with my own stuff.