def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def after_request(response):
    response.headers.add('X-Test', 'This is only test.')
    response.headers.add('Access-Control-Allow-Origin', '*')  # TODO: set to real origin
    return response