<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def new_child(self, term, value, **kwargs):
 """Create a new term and add it to this term as a child. Creates grandchildren from the kwargs. :param term: term name. Just the record term :param term: Value to assign to the term :param term: Term properties, which create children of the child term. """


        tc = self.doc.get_term_class(term.lower())

        c = tc(term, str(value) if value is not None else None,
               parent=self, doc=self.doc, section=self.section).new_children(**kwargs)

        c.term_value_name = self.doc.decl_terms.get(c.join, {}).get('termvaluename', c.term_value_name)

        assert not c.term_is("*.Section")
        self.children.append(c)
        return c