PyMEL is an open-source Python library licensed under the new BSD license. Autodesk provides PyMEL for user convenience but does not directly support it. Help can typically be found on the Python Inside Maya mailing list.
import pymel.core as pm
light = pm.directionalLight(intensity=0.8)
For more information about PyMEL, see the PyMEL documentation.