You can be 100% sure that no python code is on Mars. Not even Common Lisp which is much more secure and performant is on Mars.
The real rover code is all hardcore C. Erann Gat gave a presentation on the Lisp Conference about the JPL rover code and simulation.