def mpc(self, *args, **kwargs): def command(): return self.mpccmd(*args, **kwargs) return command