added the scan.py script