code: def urlencode(self):
          
          output = ('%s=%s' % (k, quote(v)) for k, v in self.items())
          return '&'.join(output)
docs: Convert dictionary into a query string; keys are
          assumed to always be str