Python: how to get name of active render layer Using Python, how do I get the name of the active render layer?

I have three render layers.  All three are enabled.  But only 1 can be "active." (highlighted in blue when I select it)

I would like to write a script that gets the active render layer name, appends it to the render Output filename, and only renders this layer.

Thank you.
bpy.context.scene.render.layers.active.name gets the name of the active render layer.