def set_terms(self,*terms, **kw_terms):
for t in terms:<EOL><INDENT>self.add_term(t)<EOL><DEDENT>for k,v in kw_terms.items():<EOL><INDENT>try:<EOL><INDENT>value, props = v<EOL><DEDENT>except (ValueError, TypeError) as e:<EOL><INDENT>value, props = v,{}<EOL><DEDENT>self.new_term(k,value,**props)<EOL><DEDENT>
Create or set top level terms in the section. After python 3.6.0, the terms entries
should maintain the same order as the argument list. The term arguments can have any of these forms:

* For position argument, a Term object
* For kw arguments:
    - 'TermName=TermValue'
    - 'TermName=(TermValue, PropertyDict)

Positional arguments are processed before keyword arguments, and are passed into .add_term()

:param terms: Term arguments
:return: