Python returns MagicMock object instead of return_value

How to send email to multiple recipients using python smtplib?