#19: Add 'scanner.py'

Resolves #19.