Why is Python used on aircraft although it may not be certifiable?
Just because aviation developers use Python, does not mean that Python actually goes flying.

Lots of aviation development is about testing, stressing, validating, analyzing, and documenting the code that does go flying.   

Python is an excellent language for all that validation work, even though it stays on the ground.