PEP8 refactoring of scanner modules
Also includes:
- type Iterator instead of Iterable when applicable
- rename private methods from leading 2 underscores to 1 to match project coding style
Depends on !77 (closed)
Migrated from D4198 (view on Phabricator)