That said, it should be a criminal offense to write any tool this large and complex in any language that can’t be used in a powerful step debugger.
TBH I’m increasingly frustrated by the amount of code written in Bash. I kind of hate Python for various reasons. But if 100% of Bash was replaced with Python I think the world would be a better place.