added new python file, modifying write_to_file -backup-