Python: enable ipv6 support. closes #1795