The Shotgun constructor takes over ten seconds to return when it's called from Maya 2012's script editor.
Where URL is 'mystudio.shotgunstudios.com' and KEY is the API key, an example of a call that takes over ten seconds to return would be:
print Shotgun(URL; 'shotQuery', KEY)
The same line takes less than one second to return if it's executed in a regular, not-embedded-in-Maya Python interpreter.
Why is this, and are there any workarounds?