final version of big_scan.py as submitted