def FakeAccess(path, mode):
 if ((not os.path.exists(path)) or (mode != os.R_OK)):
  return False
 else:
  return True

def FakeAccess ( path , mode ) : if ( ( not os . path . exists ( path ) ) or ( mode != os . R_OK ) ) : return False else : return True
fake version of os .