def get_child_by_tag(elem, tag_name):
    """ Return child elements with a given tag """
    tags = [child for child in elem.getchildren() if child.tag == tag_name]
    return tags[0] if 0 < len(tags) else None