def __build_trait(self, name, val, note=''): t = Trait() t.name = name t.val = val t.note = note return t