title: Maya python invalid syntax on import
body: <p>I'm doing an autorig for Maya, and I have this file which return me a invalid syntax :</p>
  
  <pre><code>import maya.cmds as cmds
  from SupeRigTools import *
  
  def startButtonFunc():
      loadLocators()
  
      buttons = ["left_leg_button", "right_leg_button"]
  
      for but in buttons:
          cmds.button(but, edit = True, enable = True)
  
  def leftLegButtonFunc():
      rigLeg("left")
  
      cmds.button("left_leg_button", edit = True, enable = False)
  
  def rightLegButtonFunc():
      rigLeg("right")
  
      cmds.button("right_leg_button", edit = True, enable = False)
  </code></pre>
  
  <p>And the error is :</p>
  
  <pre><code># Error: line 1: SyntaxError: file &lt;maya console&gt; line 2: invalid syntax #
  </code></pre>
  
  <p>It used to work but it won't compile now</p>