Obviously the point of the article is to not manually parse ip addresses.
Well actually, python can do that just as well as all the other languages.
>>> import ipaddress
>>> ipaddress.ip_address('2001:db8::')
IPv6Address('2001:db8::')