def find_space(addr_space, procs, mod_base):
 if addr_space.is_valid_address(mod_base):
  return addr_space
 for proc in procs:
  ps_ad = proc.get_process_address_space()
  if (ps_ad != None):
   if ps_ad.is_valid_address(mod_base):
    return ps_ad
 return None

def find_space ( addr_space , procs , mod_base ) : if addr_space . is_valid_address ( mod_base ) : return addr_space for proc in procs : ps_ad = proc . get_process_address_space ( ) if ( ps_ad != None ) : if ps_ad . is_valid_address ( mod_base ) : return ps_ad return None
search for an address space .