IMAP manage in Python