element_attributes = [('class', 'content'), ('title', 'source')]
is_content = any(attr == 'class' and 'content' in val.split() for attr, val in
    element_attributes)
Check that list of tuples has tuple with 1st element as defined string