Sorry, brain not engaged at the moment, but this script changes the value of a property called “Text” to a value retrieved from a globalDict variable:
# Setting things up
# get the GameLogic module
import GameLogic
# get controller script is attached to
controller = GameLogic.getCurrentController()
# get new position vector string
position_out = GameLogic.globalDict["position_vec"]
# send it to the HUD-Position property "Text"
controller.owner["Text"] = position_out
# End script