I just figure out the problem. Was related to the Pyautogui version, I dont know but for some reason the lastest version PyAutoGUI-0.9.54 was causing this issue, I just replace the version to the current that I was using on my code PyAutoGUI==0.9.40 and worked.