def _soft_update(a, b):
 a.update({k: v for (k, v) in b.items() if (k not in a)})

def _soft_update ( a , b ) : a . update ( { k : v for ( k , v ) in b . items ( ) if ( k not in a ) } )
as opposed to dict .