pylint work.

Focused on the codestream object.  More to do, but the changes were
considerable.