def get_app_class(template):
class App(template):
def F_main(self):
self.os.kill(int(self.argv[1]))
self.exit()
return App