first commit to ScanLoop.py