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 Python collectionsdiffcomparechanges 1.0.0py rs ts18 tests