Community
It's regular Maya scripting.
The MEL is logged in the script history when you do it interactively:
setAttr "aiSkyDomeLightShape1.camera" 0;
So the Python is
import maya.cmds as cmds cmds.setAttr( "aiSkyDomeLightShape1.camera", 1 )