Record Animation not working Salutations cronies, I am having trouble getting the Record Animation setting to work. I have read and watched a number of tutorials but I cannot get my animation to be recorded. Here:here is a link to get my blend file and below is the code for the module called by it (to get the characters ears to move in a continuous sinusoidal manner). 

## Program to slowly alter vectors of bones and servos which is ####
## read by Blender ####
import os
import time
import math

i=0

def boneInstruc():

    while 1:  
        global i #necessary to ensure using global variable 
        xRE=round(math.sin(i),2)
        yRE=0.00
        zRE=0.00
        RE=[xRE,yRE,zRE]
        xLE=round(math.sin(i),2)
        yLE=0.00
        zLE=0.00
        LE=[xLE,yLE,zLE]
        xTL=round(math.sin(i),2)
        yTL=0.00
        zTL=0.00
        TL=[xTL,yTL,zTL]
        i=i+0.01
        #servo(xRE, xLE, xTL)
        time.sleep(0.01)
        return (RE, LE, TL)
Python scripts run blocking in Blender, which means Blender will wait and UI be locked until finished. You won't see an animation therefore, no matter if you use time.sleep() or not.

Use a frame change handler to register a callback function, that changes objects on every frame change (before or after):

http://www.blender.org/documentation/blender_python_api_2_70_release/bpy.app.handlers.html