Python serves as an established, mature glue language that's relatively easy to learn. But of course even in Python, if some heavy lifting needs to be done, that happens in C/C++, and precompiled as a native binary object, with a Python layer on top of it for the users.