def brute(self, command): if len(command) == 2: if command[1] == 'ftp': brute.ftp() elif command[1] == 'mysql': brute.mysql() else: brute.help() else: brute.help()