Slightly off-topic: can anyone recommend a nice framework / library to replace "bash scripts" with Python? For instance, I don't want to deal with subprocess manually.

Something for Python akin to zx for JavaScript?

https://github.com/google/zx