This was a wonderful read, and it reminded me of Rash, a merger of Racket and shell scripting. I find it interesting the blog post is embedding a shell-like syntax within Python, while Rash is a language that embeds Racket syntax within itself.
Update: I turned this into a full python library with extra goodies, such as:
Reminded me of https://xon.sh :)
Brings this to mind: http://amoffat.github.io/sh/
Yep and I think that explicitly partially applying using their bake is a nice API. The blog post’s API supports pipes (and redirections!) which in my opinion is nicer than what the sh library offers.