Correct SWIG wrapper to return IP address text representations for nodecons

Otherwise the Python would have to use unsafe cdata.i SWIG functions to
access the memory areas to do the same thing.

Also eliminate the QPOL_IPV4/QPOL_IPV6 from the protocol funtion, to
abstract away the binary policy representation details.