python list index of repeated elements