def addMenuCommand(self, label, icon, command):
try:
cmds.menuItem( label=label, image=icon, command=command )
except RuntimeError as e:
print 'Maya error while trying to change menu parent:',
print e