[python] Removing duplicates from a list of lists