def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def get_except(self, func, *args):
        try:
            func(*args)
        except Exception as detail:
            return detail.__class__, str(detail)