def mayafpsconverter(Sfps):
    condition = 0
    if Sfps == "":
        condition = 1
        return Sfps
    if Sfps == "15":
        condition = 1
        return "game"
    if Sfps == "24":
        condition = 1
        return "film"
    if Sfps == "25":
        condition = 1
        return "pal"
    if Sfps == "30":
        condition = 1
        return "ntsc"
    if Sfps == "48":
        condition = 1
        return "show"
    if Sfps == "50":
        condition = 1
        return "palf"
    if Sfps == "60":
        condition = 1
        return "ntscf"
    ERRORSTRING = "MINDBENDER_FPS has bad value in the bat file"
    if str(Sfps).isdigit() is False:
        cmds.confirmDialog(
        title="Enviroment variable error",
        message=ERRORSTRING,
        button="",
        defaultButton="",
        cancelButton="",
        dismissString="")
        return ""
    if condition == 0:
        Sfps = str(Sfps) + "fps"
        return Sfps

@@ -1,8 +1,31 @@
+from maya import cmds%0A%0A
 def maya
@@ -707,25 +707,16 @@
 mDialog(
-%0A        
 title=%22E
@@ -742,16 +742,35 @@
 error%22,%0A
+                   
         
@@ -802,70 +802,146 @@
     
-button=%22%22,%0A        defaultButton=%22%22,%0A        cancelButton=%22%22,%0A
+                   button=%22%22,%0A                           defaultButton=%22%22,%0A                           cancelButton=%22%22,%0A                   
     

add import module for cmds