code: def parse_query_string(query):
      
      result = {}
      qparts = query.split('&')
      for item in qparts:
          key, value = item.split('=')
          key = key.strip()
          value = value.strip()
          result[key] = unquote_plus(value)
      return result
docs: parse_query_string:
      very simplistic. won't do the right thing with list values