Import maya only when INSIDE maya

This prevent the toolkit to crash when loaded in a shell. Usefull since
some libs like libSerialization can work outside maya without problems.