human
Solve the following python programming problem given the following code:
@ convert_paramiko_errors 
def execute_command(self, cmd, pseudo_tty = False) : 
    def get_channel(ssh) : 
        channel = ssh.get_transport ().open_session () 
        if (not channel) : 
            raise paramiko.SSHException ('channel opening failed') 
return channel 
channel = self.get_ssh (get_channel) 
    if (not channel) : 
        raise errors.RemoteError (('failed to open an SSH session to %s' % self.node.name)) 
if pseudo_tty : 
        channel.get_pty () 
channel.set_combine_stderr (True) 
    BS = (2 ** 16) 
    rx_time = time.time () 
    log_name = ('%s (%s): %r' % (self.node.name, self.node.get ('host'), cmd)) 
    next_warn = (time.time () + self.warn_timeout) 
    next_ping = (time.time () + self.ping_interval) 
    def available_output() : 
        'read all the output that is immediately available' 
        while channel.recv_ready () : 
            chunk = channel.recv (BS) 
            (yield (rcontrol.STDOUT, chunk)) 
channel.exec_command (cmd) 
    channel.shutdown_write () 
    exit_code = None 
    if epoll : 
        poll = select.epoll () 
        poll.register (channel.fileno (), select.EPOLLIN) 
else : 
        poll = None 
try : 
        while True : 
            if ((exit_code is None) and channel.exit_status_ready ()) : 
                exit_code = channel.recv_exit_status () 
if poll : 
                try : 
                    poll.poll (timeout = 1.0) 
except IOError as ex : 
                    if (ex.errno != errno.EINTR) : 
                        raise 
continue 
else : 
                select.select ([channel], [], [], 1.0) 
for output in available_output () : 
                rx_time = time.time () 
                next_warn = (time.time () + self.warn_timeout) 
                (yield output) 
if (channel.closed and (exit_code is not None)) : 
                (yield (rcontrol.DONE, exit_code)) 
                break 
now = time.time () 
            if (now > (rx_time + self.terminate_timeout)) : 
                raise errors.RemoteError (('%s: no output in %.1f...

    
    

    Fix the buggy line: next_ping = (time.time () + now.ping_interval)
assistant
#Here is Python program to fix the buggy line: next_ping = (time.

next_ping = (time.time () + self.ping_interval)