Adding lights to selected objects with python? I'm working in Blender 2.8 and I'm new to python and scripting in general. 

I have a file that contains multiple lighting fixtures (100+). I'm trying to write a script that will add a spot light to each fixture that I've selected.

Here's what I have so far:

import bpy

selected = bpy.context.selected_objects[0]

bpy.ops.object.light_add(type='SPOT', location=selected.location)


The issue is this script only adds a light to one object, not every object I've selected.

I haven't gotten to it yet, but I'd also like every light to have share the same light data, so they can all be changed at once.

Thanks in advanced for the help!
import bpy

for obj in bpy.data.collections["Collection"].objects.keys():
    bpy.ops.object.duplicate(linked=True)
    light = bpy.context.active_object.name
    bpy.data.objects[light].location = bpy.data.objects[obj].location


This should do the trick, make sure you create a light first (this will control all the other light) and have it selected. Also you want all your light fixture objects in the same collection named "Collection".