Update IMAPEncrypt.py

Seems to work better; running without exceptions/crashes for about a day now...