def extract_extension_options(field_list, options_spec):
 option_list = extract_options(field_list)
 option_dict = assemble_option_dict(option_list, options_spec)
 return option_dict

def extract_extension_options ( field_list , options_spec ) : option_list = extract_options ( field_list ) option_dict = assemble_option_dict ( option_list , options_spec ) return option_dict
return a dictionary mapping extension option names to converted values .