def initialize_log_data(ids_bcs_added_field):
 log_data = {}
 for curr_key in ids_bcs_added_field.keys():
  base_key = ''
  if curr_key[0]:
   base_key += (curr_key[0] + ',')
  if curr_key[1]:
   base_key += (curr_key[1] + ',')
  base_key += ids_bcs_added_field[curr_key]
  log_data[base_key] = 0
 return log_data

def initialize_log_data ( ids_bcs_added_field ) : log_data = { } for curr_key in ids_bcs_added_field . keys ( ) : base_key = '' if curr_key [ 0 ] : base_key += ( curr_key [ 0 ] + ',' ) if curr_key [ 1 ] : base_key += ( curr_key [ 1 ] + ',' ) base_key += ids_bcs_added_field [ curr_key ] log_data [ base_key ] = 0 return log_data
initializes log data .