In Python's urlparse, you can use urlparse to parse the URL, and then parse_qsl to parse the query.
I want to remove a query (name, value) pair, and then reconstruct the URL.
There is a urlunparse method, but no unparse_qsl method.
What is the correct way to reconstruct the query from the qsl list?
The function urllib.urlencode is appropriate.
Python urlparse.unparse_qsl?