I won’t argue with you that bash is janky and easily insecure, but what shell language do you think should replace bash?
While there certainly is some overlap, Python is a scripting language and not a shell language. Some tasks that involve calling lots of different programs and juggling input and output streams are much easier done in bash than in Python.