Batch convert glyphs backup layers to color layers

Hi i want to know how to batch convert all backup layers to color layer, because when i select all glyphs the backup layers is dissapear in layer panel.

I would not do that. Why do you need to see those layers in font view?

If you still up to it:

layer.attributes[GSLayerAttributeColor] = True