I think your syntax is incorrect. Is this maybe what you're trying to do?
import pyautogui as pag
pag.moveTo(1200, 600)
It looks like you're trying to assign the module name to pag, however you should do it when you import pyautogui directly, as assigning module names will not work. I'm also kind of confused.
Is this your full code? As you seem to be also having errors with mouseinfo and such.