Add test script: scan.py

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>