human
Complete this python program:
def gmail_login(email, passwd):
assistant
#Here is the Python program you requested.

    """Logs into your GMail account with your full email address
    (i.e., \something@gmail.com\) and password. gmail_login MUST be called
    before using sms with the provider parameter. It only needs to be called
    once per program execution.
    """
    def connect():
        gmail = smtplib.SMTP('smtp.gmail.com', port=587)
        gmail.starttls()
        return gmail
    smtp_login(email, passwd, connect)