how to write a dictionary into a file?,input_file.close()