def diff_dicts(curr, prev):
    removed = [k for k in prev if ((k not in curr) or (curr[k] != prev[k]))]
    added = [k for k in curr if ((k not in prev) or (curr[k] != prev[k]))]
    return (removed, added)
def diff_dicts(curr, prev):
    removed = [k for k in prev if ((k not in curr) or (curr[k] != prev[k]))]
    added = [k for k in curr if ((k not in prev) or (curr[k] != prev[k]))]
    return (removed, added)