def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def serialize(self):
        s = []
        for v in self:
            if isinstance(v, BaseConfig):
                v = v.serialize()
            s.append(v)
        return s