def write(self, s):
        """
        Write wrapper.

        Parameters
        ----------
        s : bytes
          Bytes to write
        """
        try:
            return self.handle.write(s)
        except OSError:
            print()
            print("Piksi disconnected")
            print()
            raise IOError
def write ( self , s ) : try : return self . handle . write ( s ) except OSError : print ( ) print ( "Piksi disconnected" ) print ( ) raise IOError
Write wrapper.

        Parameters
        ----------
        s : bytes
          Bytes to write