import smtplib


def send_email(msg):
    # Send the message via our own SMTP server.
    with smtplib.SMTP_SSL('smtp.gmail.com', 465) as s:
        # s.starttls()
        s.set_debuglevel(2)
        s.send_message(msg)

@@ -138,59 +138,8 @@
  s:%0A
-        # s.starttls()%0A        s.set_debuglevel(2)%0A
     

remove extraneous stuff from send_email