Update scan.py

Commented and stuff.