code: def getoptlist(self, p):
          
          optlist = []
          for k, v in self.pairs:
              if k == p:
                  optlist.append(v)
          return optlist
docs: Returns all option values stored that match p as a list.