'Generic handler that will write to both SSH and telnet channel.'

def write_channel(self, out_data):

    self._lock_netmiko_session()
    try:
        self._write_channel(out_data)
    finally:
        self._unlock_netmiko_session()
