Because it is a scripting language and not compiled, I have run into errors that a compiled language would have detected before even starting.
Use type hints. Pyright in strict mode. (Don't use mypy, it's much worse.)
I agree though, it is poorly suited to larger applications. Mainly because of its glacial speed.