Remove Flask ErrorMail, we have a service monitoring error logs.
Remove useless imports.