code: def run_pty(self, command):
          
          boto.log.debug('running:%s on %s' % (command, self.server.instance_id))
          channel = self._ssh_client.get_transport().open_session()
          channel.get_pty()
          channel.exec_command(command)
          return channel.recv(1024)
docs: Execute a command on the remote host with a pseudo-terminal.
          Returns a string containing the output of the command.