'CLI terminals try to automatically adjust the line based on the width of the terminal.
This causes the output to get distorted when accessed programmatically.
Set terminal width to 511 which works on a broad set of devices.'

def set_terminal_width(self, command=u'', delay_factor=1):

    if (not command):
        return u''
    delay_factor = self.select_delay_factor(delay_factor)
    command = self.normalize_cmd(command)
    self.write_channel(command)
    output = self.read_until_prompt()
    if self.ansi_escape_codes:
        output = self.strip_ansi_escape_codes(output)
    log.debug(u'{0}'.format(output))
    log.debug(u'Exiting    set_terminal_width')
    return output
