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