def update_output_levels(show, hide):
 if show:
  for key in show.split(','):
   state.output[key] = True
 if hide:
  for key in hide.split(','):
   state.output[key] = False

def update_output_levels ( show , hide ) : if show : for key in show . split ( ',' ) : state . output [ key ] = True if hide : for key in hide . split ( ',' ) : state . output [ key ] = False
update state .