Clean up pylint and unittests.

Clean up formatting in sendmail. Turn off a warning in setup, and improve
sendmail unittests slightly.
Add support for image attachments to emails.

Swap to standardized unittest file naming.