Experimenting with Python scripting to automate Gmail readings via imap