'I'm stuck on pyautogui stuff

im trying to make a program that writes a certain other program from a txt, giving in input a word that is associated with a certain word. For doing so im using pyautogui. The problem is: the method typewrite replaces some characters (like ", (), = ) with other characters. How can i avoid that?

import pyautogui, time, subprocess
word = input("put the word: ")
f = open(word, 'r')
for word in f:
    pyautogui.typewrite(word)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source