def _update_on_fields(prev_ele, new_ele):
 return dict(((prop_name, prop_val) for (prop_name, prop_val) in six.iteritems(new_ele) if ((new_ele.get(prop_name) != prev_ele.get(prop_name)) or (prop_name in _MATCH_KEYS))))

def _update_on_fields ( prev_ele , new_ele ) : return dict ( ( ( prop_name , prop_val ) for ( prop_name , prop_val ) in six . iteritems ( new_ele ) if ( ( new_ele . get ( prop_name ) != prev_ele . get ( prop_name ) ) or ( prop_name in _MATCH_KEYS ) ) ) )
return a dict with fields that differ between two dicts .