Hey there,
Sorry that you haven't seen a reply yet to your question. One of the helpful ways of figuring out how to replicate a user action in code is to open the Script Editor and enable the "Echo All Commands" option under the History menu. Then when you perform an action in the Maya UI, you can see what code is being triggered. Doing so may either tell you directly what command you can run, or it may help point you at a mel script to look into.
For instance, if I duplicate a render layer (in Maya 2016), I find out that the following mel command is used:
renderLayerEditorCopyLayer RenderLayerTab <layer name>
I can run this directly, and it will duplicate the named render layer:
import maya.mel as mm
layerName = "layer1"
mm.eval("renderLayerEditorCopyLayer RenderLayerTab {}".format(layerName))
If I wanted to know more details about this mel command, I could do this (in mel):
whatIs renderLayerEditorCopyLayer
And it would either tell me it is a builtin command and has no source file, or tell me the mel script that defined the proc. In this case, it tells me that it is defined by Maya, in its startup/scripts/layerEditor.mel
Hope this helps.
Justin