'Return a string representation in hex format in lower case.
>>> print(IP(\'127.0.0.1\').strHex())
0x7f000001
>>> print(IP(\'2001:0658:022a:cafe:0200::1\').strHex())
0x20010658022acafe0200000000000001'

def strHex(self, wantprefixlen=None):

    if ((self.WantPrefixLen == None) and (wantprefixlen == None)):
        wantprefixlen = 0
    x = ('0x%x' % self.ip)
    return (x + self._printPrefix(wantprefixlen))
