'Strips the \'standard\' prologue that get pre-pended to every
remote command and returns the text that was actually written to
stderr by the remote command.'

@staticmethod
def _strip_stderr_prologue(stderr):

    stderr_lines = stderr.split('\n')[1:]
    if (not stderr_lines):
        return ''
    elif stderr_lines[0].startswith('NOTE:    autotest-daemon-monitor'):
        del stderr_lines[0]
    return '\n'.join(stderr_lines)
