Update imapbackup.py

Cleaned up code for O365