more pythonic naming in scanner.py