Hi! I'm trying to run this python code on tommy: import imaplib import email mail = imaplib.IMAP4_SSL('imap.gmail.com') mail.login('myaccount@gmail.com', 'mypwd') x,y=mail.status('INBOX','(MESSAGES UNSEEN)') messages=int(re.search('MESSAGES\s+(\d+)',y[0]).group(1)) unseen=int(re.search('UNSEEN\s+(\d+)',y[0]).group(1)) print messages print unseen It doesn't execute it because it doen't print anything. Can you help me? Simpler codes with only a print execute well