Added import

I forgot to add the import maya.cmds as cmds.