replaced netaddr with ipaddress module