Fixed scan.py threads