Python Game Engine API for Properties

It seems like the API has changed for the game engine in 2.57 and I have been trying to track this down all day but cannot seem to.

I am simply trying to access the properties of a specific object. I was thinking I would have to do it from a controller (from which I am calling the script)

please tell me if you need more information on what I am trying to do.

import GameLogic as G
if not hasattr(G,"time"):
    G.time = 0
G.time = G.time + 1
G.getCurrentScene().objects['Text'].text = ''+str(G.time)

the last line has what you need?
or you mean something else?