def most_common(items):
 counts = {}
 for i in items:
  counts.setdefault(i, 0)
  counts[i] += 1
 return max(six.iteritems(counts), key=operator.itemgetter(1))

def most_common ( items ) : counts = { } for i in items : counts . setdefault ( i , 0 ) counts [ i ] += 1 return max ( six . iteritems ( counts ) , key = operator . itemgetter ( 1 ) )
most common elements occurring more then n times .