code: def read(self, timeout=1.0):
          
          self.ser.timeout = timeout
          if self.ser is None:
              return ''
          return self.ser.readline()
docs: read from modem port, return null string on timeout.