Going from Shotgun Python console to maya console

So i dont completely understand how to do this so i installed Shotgun desktop and i esentially just want two grab from where it grabs it code for shotgun

So where and how would i path that and import that

I am using the sg\shotgun command and the sgtk