Add email notification and fix python deprecations.