#NEWLINE# def dictlistmerge( a , b ) : #NEWLINE# #INDENT# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ret . update ( a ) #NEWLINE# for ( bk , bv ) in b . items ( ) : #NEWLINE# #INDENT# if ( bk in ret ) : #NEWLINE# #INDENT# for bvv in bv : #NEWLINE# #INDENT# if ( bvv not in ret [ bk ] ) : #NEWLINE# #INDENT# ret [ bk ] . append ( bvv ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# ret [ bk ] = ret #NEWLINE# #UNINDENT# #UNINDENT# return ret