Removed unused imports ssl and imaplib.