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