raise an IOError exception with string "Destination file %s exists and allow_overwrite is False" as argument, where '%s' is replaced by new_file_name.
raise IOError ( "Destination file %s exists and allow_overwrite is False" % new_file_name )