title: How to run wlst script by .py file
body: <p>I'm trying to run wlst script form .py file but it can not be done </p>
  
  <p>Content of .py file :</p>
  
  <pre><code>connect('weblogic','weblogic','t3://localhost:8001')
  sca_undeployComposite('http://localhost:8001','Hello','1.0','user='weblogic',partition='myPartition')
  sca_deletePartition('myPartition')
  sca_createPartition('myPartition')
  sca_deployComposite('http://localhost:8001','C:\WLST\Test\Application.zip',user='weblogic',configplan='myPlan.xml', partition='myPartition')
  exit()
  </code></pre>
  
  <p>when i run cmd file to execute script, Only connect() method is execute success. any command bellow it can not be execute. And error message appear: Problem invoking WLST - Traceback (innermost last): File "c:\WLS\script\filname.py", line 2, in ?
  Name Error: sca_undeployComposite</p>
  
  <p>Please help me to resolve it. Thanks !</p>