def get_region(region_name, **kw_params):
 for region in regions(**kw_params):
  if (region.name == region_name):
   return region
 return None

def get_region ( region_name , ** kw_params ) : for region in regions ( ** kw_params ) : if ( region . name == region_name ) : return region return None
get the region for the current request lifecycle .