def ipParse(ip):
 args = [int(arg) for arg in ip.split('.')]
 while (len(args) < 4):
  args.insert((len(args) - 1), 0)
 return ipNum(*args)

def ipParse ( ip ) : args = [ int ( arg ) for arg in ip . split ( '.' ) ] while ( len ( args ) < 4 ) : args . insert ( ( len ( args ) - 1 ) , 0 ) return ipNum ( * args )
parse an ip address and return an unsigned int .