How to render animation using different text each time?
import bpy


for obj in bpy.data.objects:
    obj.select = False

bpy.context.scene.objects.active = bpy.data.objects['Text']

bpy.ops.object.mode_set(mode='EDIT', toggle=False)

bpy.ops.font.delete(type='ALL')

bpy.ops.font.text_insert(text="Scripted text")