title: Maya's nameCommand not able to call functions
body: <p>I'm having an issue with calling functions from nameCommand's in Maya used with hotkeys. I can't tell if it's a Maya or Python issue.</p>
  
  <p>The following MEL works as expected</p>
  
  <pre><code>proc myTest() {
      print("test");
  }
  
  nameCommand -ann "test" -command "myTest()" testCommand;
  hotkey -k "l" -name "testCommand";
  </code></pre>
  
  <p>However, translated to Python, I get an error</p>
  
  <pre><code>import maya.cmds as cmds
  
  def myPythonTest():
      print("myPythonTest")
  
  cmds.nameCommand("pythonTestCommand", ann="pythonTest", command="myPythonTest()", sourceType="python")
  cmds.hotkey(k="l", name="pythonTestCommand")
  
  // Error: line 1: Cannot find procedure "myPythonTest".
  </code></pre>
  
  <p>Is it the wrong way to call functions in Python, or is something else going on? I've noticed that the parentheses are being stripped, and calling the function with <code>myPythonTest()</code> from the script editor works as expected.</p>