code: def get_query(path, force_unicode=True):
      
      u = urlparse(path)
      if not u.query:
          return {}
      p = parse_qs(u.query)
  
      if force_unicode:
          p = _unicode(p)
      return p
docs: Convert the query path of the URL to a dict.
      See _unicode regarding force_unicode.