update scanner.py