def attribute_finder(tag,kw,v=False):
    """
        Returns True if the param :kw: is in the tag's class or ID, and false otherwise
    """
    
    if 'class' in tag.attrs:
        if kw in tag.attrs['class'] or any([kw in x for x in tag.attrs['class']]):
            return True
    if 'id' in tag.attrs:
        if kw in tag.attrs['id'] or any([kw in x for x in tag.attrs['id']]):
            return True
    return False