def __filter_substring(items, attr, value):
    """select from items list where 'value' is a substring of the attribute"""
    filtered_items = []
    for item in items:
        if value.lower() in item[attr].lower():
            filtered_items.append(item)
    return filtered_items
