def get_subdict(d, param):
    """
    Get a subdictionary d : key -> value
    in a dictionary of form d : key -> (d : param -> value)

    """
    return dict([(key, d[key][param]) for key in d.keys()])