def METHOD_NAME(endpoint, **query_params):
    url = urljoin(args.admin_server, endpoint)
    if query_params:
        url += '?' + urlencode(query_params)
    req = urlopen(url)
    return req.read().decode('utf-8')