def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def serialize(self, value, display=False):
        if not value:
            return ""
        return "\n  " + "\n  ".join(encode(v) for v in value if v)