I've reinvented the wheel myself and made "pype" (link below).
I've been using python on the command line for quite a while, but I found that I tend to use it when I'm doing something a little more advanced than what can easily be done with standard Linux tools - and command line python would often fail me, because I couldn't easily do conditions or loops, because of the requirement for whitespace indenting. So pype contains a simple parser that'll convert bracket indented code to regular whitespace indented code, besides supporting all the stuff you want on the command line.
Comments
I've reinvented the wheel myself and made "pype" (link below).
I've been using python on the command line for quite a while, but I found that I tend to use it when I'm doing something a little more advanced than what can easily be done with standard Linux tools - and command line python would often fail me, because I couldn't easily do conditions or loops, because of the requirement for whitespace indenting. So pype contains a simple parser that'll convert bracket indented code to regular whitespace indented code, besides supporting all the stuff you want on the command line.
https://github.com/ircflagship2/pype