>"Yes, in theory this is a problem in lots of languages which are weakly typed."
Minor pedantic correction: Python is dynamically typed, and strongly typed. Those are separate concepts.
Strongly-typed vs weakly-typed
Statically-typed vs dynamically-typed