The simplest way that I can think of would be to just use a hashtable, with no private variables.
Just setup the table like this for each object you want to get the name of:
[code:2ad5ng9p]+ System: Start of layout
-> HashTable: Insert key str(Sprite.OID) with value "Sprite"
-> HashTable: Insert key str(Sprite2.OID) with value "Sprite2"[/code:2ad5ng9p]
Then you can retrieve the name later with the OID of the object:
[code:2ad5ng9p]-> Text: Set text to HashTable (str(Sprite.OID))[/code:2ad5ng9p]