def _par_indices(names):
 unique = {}
 for (idx, name) in enumerate(names):
  name = name.upper()
  if (name in unique):
   unique[name].append(idx)
  else:
   unique[name] = [idx]
 return unique

def _par_indices ( names ) : unique = { } for ( idx , name ) in enumerate ( names ) : name = name . upper ( ) if ( name in unique ) : unique [ name ] . append ( idx ) else : unique [ name ] = [ idx ] return unique
given a list of objects .