Python IP addresses: Use modern ipaddr.py - supports IPv6