human
Complete this python program:
def _IncreasePenalty(node, amt):
assistant
#Here is the Python code you requested.

    """Increase a penalty annotation on children nodes.
    """
    def RecExpression(node, first_child_leaf):
        if (node is first_child_leaf):
            return
        if isinstance(node, pytree.Leaf):
            if (node.value in {'(', 'for', 'if'}):
                return
            penalty = pytree_utils.GetNodeAnnotation(node, pytree_utils.Annotation.SPLIT_PENALTY, default=0)
            _SetSplitPenalty(node, (penalty + amt))
        else:
            for child in node.children:
                RecExpression(child, first_child_leaf)
    RecExpression(node, _FirstChildNode(node))