How can I edit text object properties with a script?
import bpy

# Set render engine to cycles
bpy.context.scene.render.engine = 'CYCLES'

textObjs = [ o for o in bpy.data.objects if o.type == 'FONT' ]
print( "No of text objs: %s" % len( textObjs ) )

for o in textObjs:
    print( o.name )

    # Set text properties
    o.data.extrude             = 0.2
    o.data.bevel_depth         = 0.1
    o.data.bevel_resolution    = 0.1
    o.data.resolution_u        = 12
    o.data.render_resolution_u = 12

    # Create a new material based on the object's name
    o.active_material = bpy.data.materials.new(o.name + '.mat')
    o.active_material.use_nodes = True