Removing utils.file_exists and replacing with os.path.isfile