Scan - fix for autoscan

fix for: TypeError: coercing to Unicode: need string or buffer, IPv4Address found