Rotating an Empty at a constant speed, through a Python script
Consider just keyframing the rotation of the empty. Simple animation. 0 degrees, 180 degrees, 360 degrees. 3 keyframes and then adjust.  In the graph editor add a cyclic modifier.