'in python3, should return unicode.  in python2, should return a
string of bytes'

def __repr__(self):

    try:
        return str(self)
    except UnicodeDecodeError:
        if self.process:
            if self.stdout:
                return repr(self.stdout)
        return repr('')
