'i.e: val = "192.168.10.24:445"
NOTE: port is optional'

def pythonize(self, val):

    val = unique_value(val)
    m = re.match('^([^:]*)(?::(\\d+))?$', val)
    if (m is None):
        raise ValueError
    addr = {'address': m.group(1)}
    if (m.group(2) is not None):
        addr['port'] = int(m.group(2))
    return addr
