scanner.py: Adding print statements for debugging scanner