title: cocoa: cocoa with python
body: <p>I want to implement an Email client using python smtp library. but I don't know:<br>
  1. how to run python code in cocoa? like</p>
  
  <pre><code>s = smtplib.SMTP()   
  s.connect("mail.yourdomain.com") 
  s.login(username, password) #login if needed 
  s.sendmail(mailfrom, mailto, mailbody)  
  s.quit()  
  </code></pre>
  
  <p>2. can cocoa can get the error message from python smtp library?</p>