def _children_with_tags(element, tags):
 return itertools.chain(*(_children_with_tag(element, tag) for tag in tags))

def _children_with_tags ( element , tags ) : return itertools . chain ( * ( _children_with_tag ( element , tag ) for tag in tags ) )
returns child elements of the given element whose tag is in a given list .