Update scanner.py