I just re-read the code below and see why this is the way it is. What is `y` anyway? The ID from AMO? Seems like we want a `guid` to `data-from-amo` dict, this could be `dict((x['guid'], x) ...)` since that's all we use `y` for.