'By default, commands are defined by methods _cmd_<command>.'

def get_commands(self, onlyLocal=False):

    cmds = self._handlers.keys()
    if onlyLocal:
        cmds = [c for c in cmds if (c not in self._universalCommands)]
    return cmds
