Assorted import/lint cleanup.

This is mostly a cleanup around import statements and a few related pylint
issues.
Merge pull request #37 from craigcitro/imports2

More import/lint cleanup.