title: Python - Sending email with attachment using GMAIL smtp gives error
body: <p>I'm trying to send an email using Python and Google's smtp. After calling it I get an error: </p>
  
  <pre><code>   msg = MIMEMultipart('alternative')
  TypeError: 'LazyImporter' object is not callable
  </code></pre>
  
  <p>Did anyone had the same problem ? What's the solution for that ?</p>
  
  <p><strong>My code</strong>:</p>
  
  <p><a href="http://pastebin.com/5Zw4UwWk" rel="nofollow">Pastebin code</a></p>