Helper to return list of usage plan items matching the given attribute value.

def _filter_plans(attr, name, plans):
    '''
    Helper to return list of usage plan items matching the given attribute value.
    '''
    return [plan for plan in plans if plan[attr] == name]