Replaced imaplib library with imapclient