import json
with open('tsr.json', 'r') as handle:
    data = json.load(handle)

t = {}
for x in data:
    t[(x['owner'], x['name'])] = x['changeset_revision']


import yaml
import glob
for file in glob.glob("*.yaml"):
    with open(file, 'r') as handle:
        w = yaml.load(handle)

    for tool in w['tools']:
        key = (tool['owner'], tool['name'])
        if key in t:
            tool['changeset_revision'] = str(t[key])
    
    with open(file, 'w') as handle:
        yaml.dump(w, handle, default_flow_style=False)

@@ -5,16 +5,775 @@
 rt json%0A
+import yaml%0Aimport glob%0Afrom collections import OrderedDict%0A%0A%0A# https://stackoverflow.com/questions/42518067/how-to-use-ordereddict-as-an-input-in-yaml-dump-or-yaml-safe-dump%0Adef dump_ordered_yaml(ordered_data, output_filename, Dumper=yaml.Dumper):%0A    class OrderedDumper(Dumper):%0A        pass%0A%0A    class UnsortableList(list):%0A        def sort(self, *args, **kwargs):%0A            pass%0A%0A    class UnsortableOrderedDict(OrderedDict):%0A        def items(self, *args, **kwargs):%0A            return UnsortableList(OrderedDict.items(self, *args, **kwargs))%0A%0A    OrderedDumper.add_representer(UnsortableOrderedDict, yaml.representer.SafeRepresenter.represent_dict)%0A    with open(output_filename, %22w%22) as f:%0A        yaml.dump(ordered_data, f, Dumper=OrderedDumper)%0A%0A%0A
 with ope
@@ -917,32 +917,8 @@
 %5D%0A%0A%0A
-import yaml%0Aimport glob%0A
 for 
@@ -1159,20 +1159,16 @@
 t%5Bkey%5D)%0A
-    
 %0A    wit

add that for future