code: def remove_query_param(url, key):
      
  
      (scheme, netloc, path, query, fragment) = urlparse.urlsplit(url)
      query_dict = urlparse.parse_qs(query)
      query_dict.pop(key, None)
      query = urlparse.urlencode(sorted(list(query_dict.items())), doseq=True)
      return urlparse.urlunsplit((scheme, netloc, path, query, fragment))
docs: Given a URL and a key/val pair, remove an item in the query
      parameters of the URL, and return the new URL.