repeating elements in list python,"set(x[0] for x in zip(a, a[1:]) if x[0] == x[1])"