remove use of sets from scansys.py