Declarative terminal tool programming in the python