code: def getquerydict(self, sep='&', encoding='utf-8', errors='strict'):
          
          dict = collections.defaultdict(list)
          for name, value in self.getquerylist(sep, encoding, errors):
              dict[name].append(value)
          return dict
docs: Split the query component into individual `name=value` pairs
          separated by `sep` and return a dictionary of query variables.
          The dictionary keys are the unique query variable names and
          the values are lists of values for each name.