fix scanner.py