How to compare elements in a list of lists and compare keys in a list of lists in Python?,len(set(a))