Update scanner.py

More blind stuff... just set the trim function to only execute if rangeinfo has any IPs in it.