def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def serialize(self):
        s = []
        for v in self:
            if isinstance(v, BaseConfig):
                v = v.serialize()
            s.append(v)
        return s