Add url parameters to URL.

def add_url_parameters(url, parameters):
        """ Add url parameters to URL. """
        scheme, netloc, path, query_string, fragment = urlsplit(url)
        query = parse_qs(query_string)
        query.update(parameters)
        return urlunsplit((scheme, netloc, path, urlencode(query), fragment))