def METHOD_NAME(self,fname=None):
    if fname is not None:
        ret = self.cp.read(fname)
        if len(ret)==0:
            time.sleep(0.5)
            ret = self.cp.read(fname)
        self.filename = fname
        self._process_data()