scan test.py fix