jc JSONifies the output of many CLI tools and file-types for easier parsing in scripts. This allows further command-line processing of output with tools like jq or jello by piping commands. The jc parsers can also be used as python modules.
PySnooper lets you do the same, except instead of carefully crafting the right print lines, you just add one decorator line to the function you're interested in. You'll get a play-by-play log of your function, including which lines ran and when, and exactly when local variables were changed.