global commands commands["nop"] = {} def f(self,cmd): return [""] commands["nop"]["function"] = f