import bpy
scene = bpy.context.scene
lamp_data = bpy.data.lamps.new(name='New Lamp', type='POINT')
lamp_object = bpy.data.objects.new(name='New Lamp', object_data=lamp_data)
scene.objects.link(lamp_object)
lamp_object.location = 5.0, 5.0, 5.0
lamp_object.select = True
scene.objects.active = lamp_object
Can you add a light source in blender using python