def get_config_by_name(section, name):
 for config in section:
  if (config['name'] == name):
   return config
 return None

def get_config_by_name ( section , name ) : for config in section : if ( config [ 'name' ] == name ) : return config return None
extract a named section from the configuration file .