Fixed IPv6 parsing issue for older python versions