docs: def mode(inlist):
      """
  Returns a list of the modal (most common) score(s) in the passed
  list.  If there is more than one such score, all are returned.  The
  bin-count for the mode(s) is also returned.
  
  Usage:   lmode(inlist)
  Returns: bin-count for mode(s), a list of modal value(s)
  """
  
      scores = pstat.unique(inlist)
      scores.sort()
      freq = []
      for item in scores:
          freq.append(inlist.count(item))
      maxfreq = max(freq)
      mode = []
      stillmore = 1
      while stillmore:
          try:
              indx = freq.index(maxfreq)
              mode.append(scores[indx])
              del freq[indx]
              del scores[indx]
          except ValueError:
              stillmore = 0
      return maxfreq, mode