is os.path.isfile doesn't work