Write bytes to the pseudoterminal.
        
        Returns the number of bytes written.

def write(self, s, flush=True):
        """Write bytes to the pseudoterminal.
        
        Returns the number of bytes written.
        """
        return self._writeb(s, flush=flush)