def find_commands(cls):
cmds = []<EOL>for subclass in cls.__subclasses__():<EOL><INDENT>cmds.append(subclass)<EOL>cmds.extend(find_commands(subclass))<EOL><DEDENT>return cmds<EOL>
Finds commands by finding the subclasses of Command