Palette Layers

I would like to add a new layer to Palette Layers by using python script?
On GUI, I can copy the selected master layer to the new layer named the master weight + date by just pushing “copy” button on Palette.

How can I handle this process on python script ?
If you have some references about that, Please let me know.

l = Font.selectedLayers[0]
g = l.parent
newLayer = l.copy()
newLayer.name = "New Layer"
g.layers[“anUniqueString”] = newLayer

That’s the point I want to know, Thanks.