def get_last_child(node):
    """Gets the last child of a given node
    Returns None if there is no child for the node."""
    element = None
    for child in node.iter():
        element = child
    return element