def setup_active_tag_values(active_tag_values, data):
 for category in list(active_tag_values.keys()):
  if (category in data):
   active_tag_values[category] = data[category]

def setup_active_tag_values ( active_tag_values , data ) : for category in list ( active_tag_values . keys ( ) ) : if ( category in data ) : active_tag_values [ category ] = data [ category ]
setup/update active_tag values with dict-like data .