python flatten list of lists without duplicates