rscan.py