Como enviar e-mail com anexo em pdf em Python? [duplicado]

Duplicata Possível:
Como enviar anexos de email com python

Gostaria de editar o código a seguir e enviar um email com um anexo. Attachment é um arquivo pdf, está em /home/myuser/sample.pdf, no ambiente linux. O que devo mudar abaixo?

import smtplib  
fromaddr = '[email protected]'  
toaddrs  = '[email protected]'  
msg = 'Hello'  


# Credentials (if needed)  
username = 'myemail'  
password = 'yyyyyy'  

# The actual mail send  
server = smtplib.SMTP('smtp.gmail.com:587')  
server.starttls()  
server.login(username,password)  
server.sendmail(fromaddr, toaddrs, msg)  
server.quit()  

questionAnswers(2)

yourAnswerToTheQuestion