if allow_overwrite is boolean False and call to the os.access function with arguments new_file_name and os.F_OK evaluates to boolean True,
if not allow_overwrite and os . access ( new_file_name , os . F_OK ) :