#NEWLINE# def _add_value( key , value , current_map ) : #NEWLINE# #INDENT# if ( key not in current_map ) : #NEWLINE# #INDENT# current_map [ key ] = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( current_map [ key ] , list ) : #NEWLINE# #INDENT# current_map [ key ] . append ( value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# converted_list = [ current_map [ value ] , value ] #NEWLINE# current_map [ key ] = converted_list