scanlist is a python utility that you can use to cleanup a messy text file of ip addresses, network ranges, or subnets with cidr notation