Beginner question : modifying text with Python

Hey,

I have modelled a blender scene with a dummy text object in 3D. Now I would like to have a python script that can change the text automatically.

From “Dummy Text” into “Hello World”.

Can you help me how I can access the text string? The object is called “Font”…

Thank you!
Christopher

import Blender
import sys
import GameLogic

cont=GameLogic.getCurrentController()
own=cont.getOwner()

own.Text="Hello World"

EDIT: Put that into a text file attached to the font object.