lamp properties in game I am trying to animate a lamp properties in the bge yet since it is not a proper Action or ShapeKey I cannot use the standard logic bricks and I was wondering if there is a way around scripting. 
I can access bpy.data.lamps['Lamp'].energy but whats the way to implement the code in the game ?
I managed to access the energy property in game with this script 

import bge
cont = bge.logic.getCurrentController()
obj = cont.owner
obj.energy = 1.0