def is_kde_lib(d):
    """Is the kde object a dict of dicts {lib:{taxon:scipy_kde}}?

    Parameters
    ----------
    d : dict
        {taxon_name:kde} or {libID:{taxon_name:kde}}
    Returns
    -------
    b : boolean
    """
    try:
        k1 = d.keys()[0]
        d[k1].keys()
    except AttributeError:
        return False
    else:
        return True