def NewPredicateSection(self, pred_str):
    pred = self._GetPredicate(pred_str)
    block = _PredicateSection()
    block.NewOrClause(pred)

    self._NewSection(_DoPredicates, block)
For chains of predicate clauses.
dataset/ETHPy150Open cloudbuilders/radioedit/jsontemplate.py/_ProgramBuilder.NewPredicateSection