'Send a command to master (when we get establish a connection if we
don\'t have one already.)'

def send_command(self, cmd):

    if self.connection:
        self.connection.send_command(cmd)
    else:
        logger.warn('Queuing    command    as    not    connected:    %r', cmd.NAME)
        self.pending_commands.append(cmd)
