def get_app(self): brat = Brat() brat.add_handler('/', HelloWorld) self.app = brat.get_app() return self.app