check whether a file `fname` exists,os.path.isfile(fname)