Cannot get Lighting to work.

It’s plight.setAttenuation, not plight.node.setAttenuation.

I would suggest familiarising yourself with Python programming before you get into Panda3D programming.