Earlier quoted context omitted.
I really don't understand the "switch to Python" thing. Bash scripts are good for calling sequences of command line programs. That is not particularly convenient in Python.
It's perfectly convenient. The subprocess module works well enough for such things. Or even the old os.system.
I've told developers that if I catch them writing shell scripts in python they must commit a shell script doing the same set of operations. 2x the work usually dissuades from this type of nonsense.