Blender 2.73 Objects do not respond to script, but do to Python console
All credit to @Chebhou.

From above:

"Anyway, the moral of the story is you can't command things which are defined with keyframes from scripts, but you can with the Python console."