Having used Python for a simple robotics platform for experimentation with machine learning I've found Python lacks in supporting hardware in anywhere near real time. Polling the GPIO using C is noticeably faster than in Python, as the motors run much more smoothly, and the likes of ultrasonic sensors are more accurate as the interval between polling is reduced.
The ideal would not to have to poll the GPIO at all, but to rely on an interrupt driver. Python is not suitable for writing such code, since it has no support for real-time processing. I don't doubt C would do the job as would Ada or perhaps Rust, but I'm lacking documentation on how to write the IRQ handler in either language.