class CommandRunner(object): """docstring for CommandRunner.""" def __init__(self): super(CommandRunner).__init__() def run(self, module): print("REAL RUNNER") print("Commands should be executed as subprocess.") class CommandRunnerDebug(object): def __init__(self): super(CommandRunnerDebug).__init__() def run(self, module): print("DEBUG RUNNER") print(module.get_command())