Hello. There are 3 scripts here :
The first (pythonMail) checks if you have new mail and if so, creates a file "/tmp/newMailArrived".
The second one (pythonTmpMail) checks if there is a "/tmp/newMailArrived" file, and if so, runs the third script.
The third (pythonMailNotification) drops an icon in the "system tray",
to notify you that new mail has arrived.