Fix script for Blender 2.70. Now it's not required to enable "Automatic keyframe insertion" button.