Scripting Question

Hello Blender Artist Community,
Excuse me if there is a better section to post this under but I am running into a problem with python scripting in blender. I am attempting to write a script that will (in the GE) display the coordinates of the mouse as it moves around the screen. I understand the modules for adding 3d text, but I cannot find a method of editing the text object to list the coordinates.
If anyone knows of a method of doing this, or even a module to look under for editing text objects, please post it.
Thank you for your time,
Chris G.