collections.diff
Compare two lists of records by key: which were added, which removed, and which changed and in what fields.
diff_by_key in Python2 capabilities
diff_by_key in Pythonmerge_todos in Python