Added a check to mail processing so it doesn't load hidden files.
Resolved some python 2/3 compatibility issues.