def load_optional_q(config, cidr_name):
 cidr = config.get(cidr_name)
 ip_q = None
 if (cidr is not None):
  ip_q = Queue.Queue()
  load_ip_q(cidr=cidr, ip_q=ip_q)
 return ip_q

def load_optional_q ( config , cidr_name ) : cidr = config . get ( cidr_name ) ip_q = None if ( cidr is not None ) : ip_q = Queue . Queue ( ) load_ip_q ( cidr = cidr , ip_q = ip_q ) return ip_q
load optional queue with ip addresses .