I am trying to find to create a list of active IPs in the LAN using python. I have tried the following code which was suggested by someone else but it does not output any Hosts.