code: def write(self, s):
          
          try:
              return self.handle.write(s)
          except (OSError, serial.SerialException,
                  serial.writeTimeoutError) as e:
              if e == serial.writeTimeoutError:
                  print("sbp pyserial_driver: writeTimeoutError")
                  return 0
              else:
                  print()
                  print("Piksi disconnected")
                  print()
                  self.handle.close()
                  raise IOError
docs: Write wrapper.
  
          Parameters
          ----------
          s : bytes
            Bytes to write