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

def connect_to_region ( region_name , ** kw_params ) : for region in regions ( ) : if ( region . name == region_name ) : return region . connect ( ** kw_params ) return None
given a valid region name .