fixed arguments in scan.py