Python Plugin

Hello Python Community,

i have five .py Files with different Tools. all five files should import in one Plugin File.

The big problem is when i import the the file, the Maya functions did not work and i get
an error! the guiWIndow starts with one button, but if i check the button and want to create
for example a sphere i get the error.

Plugin FIle

import sys
import maya.OpenMaya as OpenMaya
import maya.OpenMayaMPx as OpenMayaMPx

import guiWindow

kPluginCmdName = "guiTest"

# command
class scriptedCommand(OpenMayaMPx.MPxCommand):
def __init__(self):
OpenMayaMPx.MPxCommand.__init__(self)
def doIt(self,argList):
print "Hello World!"

# Creator
def cmdCreator():
return OpenMayaMPx.asMPxPtr( scriptedCommand() )

# Initialize the script plug-in
def initializePlugin(mobject):
mplugin = OpenMayaMPx.MFnPlugin(mobject)
try:
mplugin.registerCommand( kPluginCmdName, cmdCreator )
except:
sys.stderr.write( "Failed to register command: %s\n" %kPluginCmdName )
raise

# Uninitialize the script plug-in
def uninitializePlugin(mobject):
mplugin = OpenMayaMPx.MFnPlugin(mobject)
try:
mplugin.deregisterCommand( kPluginCmdName )
except:
sys.stderr.write( "Failed to unregister command: %s\n" %kPluginCmdName )
raise