def _fetch_json(sess, url):
    """\
    Fetches the provided url and returns the JSON result as dict.

    :param sess: requests.Session
    :param url: The URL to fetch.
    :rtype: dict
    """
    res = sess.get(url)
    dct = res.json()
    if dct['status'] != 'OK':
        raise Exception('Unexpected result "%s"' % dct['status'])
    return dct