Fix PEP-8 formatting recommendations in the extensions module.

This fixes line length and visual indent warnings from the pep8 tool
in the extensions module.

Testing Done:
Ran unit tests for diffviewer module, and ran pep8 again.

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