code: def read(self, size):
          
          try:
              return self.handle.read(size)
          except (OSError, serial.SerialException):
              print()
              print("Piksi disconnected")
              print()
              self.handle.close()
              raise IOError
docs: Read wrapper.
  
          Parameters
          ----------
          size : int
            Number of bytes to read.