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