"""Replaces a keyword in a file and writes the updated contents to another file. Args: file_name: The name of the file to search and replace the keyword in. keyword: The keyword to search for. replace ...
It would be nice to have same infile and outfile for json.tool to replace json files with their pretty-printed version. Currently, if I try this I get an error: $ python3 -m json.tool example.json ...