Objects instances (python)

How do I specify an object instance in python? I need a script that pathfind an instance of and added object.
The problem is of the same type of the “trackto-add object” issue

You get a reference when You create it - keep that somewhere (in a property or a module global variable).

Is there a sensor or anctuator among the logic bricks for this? I don’t have any idea.