Cleanup bulk email app

Mostly pep8/pylint fixes.

Brian - I got rid of one test in `test_email.py` because it wasn't working right, and is already tested in `test_err_handling`. I also added a close connection in tasks because looking through I don't think we should leave on that except clause without closing it.

@brianhw @adampalay