title: blender script: how to write to text object
body: <p>I use blender 2.6 and add a text object with </p>
  
  <pre><code>bpy.ops.object.text_add(location=(x,y,z))
  </code></pre>
  
  <p>and just want to set the text and cannot figure that out. I found in the python console that I can </p>
  
  <pre><code>bpy.data.texts['Text.001'].write("my text")
  </code></pre>
  
  <p>but (also generally) am confused how to reference the last created object to perform something on it. In tutorials there is the <code>primitive_MESHTYPE_add</code> shortcuts which return not the object created. Can you tell me how to do <code>Text.new()</code>?</p>