'Builds a logout URL with the `no_redirect` query string parameter.
Args:
url (str): IDA logout URL
Returns:
str'

def _build_logout_url(self, url):

    (scheme, netloc, path, query_string, fragment) = urlsplit(url)
    query_params = parse_qs(query_string)
    query_params['no_redirect'] = 1
    new_query_string = urlencode(query_params, doseq=True)
    return urlunsplit((scheme, netloc, path, new_query_string, fragment))
