def filter_attributes(d, filterkeys=["name", "uuid", "state"]):
    """filters from the given dict just the attributed with the specified keys"""
    f = {}
    for name in d:
        m = d[name]
        f[m["name"]] = dict(zip(filterkeys, [m[k] for k in filterkeys]))
    return f