Fix PEP-8 issues with some more code.

This addresses problems in the attachments, changedescs, cmdline, and
diffviewer modules.

Reviewed at https://reviews.reviewboard.org/r/4424/