def save_config(path):
    """save the current config to path."""
    ts = {}
    for k in patches.PATCHES:
        v = patches.PATCHES[k].enabled
        ts[k] = v
    with open(path, "w") as f:
        json.dump(ts, f)
save the current config to path.
bin/monkeylord.py