class TransportBase: def __init__(self, config): self.config = config def writeline(self, cmd_str): raise Exception('Implement me!') def readline(self): raise Exception('Implement me!') def close(self): raise Exception('Implement me!')