How can I translate an object along its local axis using a script?
I found the answer here.

  import bpy
  from mathutils import Vector, Matrix

  ...

  trans_local = Vector((0.0, 32.0, 0.0))
  trans_world = obj.matrix_world.to_3x3() * trans_local
  obj.matrix_world.translation += trans_world