read from modem port, return null string on timeout.

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