for group in mapfile.getElementsByTagName ('objectgroup'):
for obj in group.getElementsByTagName('object'):
objName=str(obj.attributes['name'].value)
objX = int(obj.attributes['x'].value)
objY = int(obj.attributes['y'].value)
System.Create (objName, 'obj', objX, objY )
newobj = eval('SOL.'+objName)
#thats all works, problem is here:
newobj.SetValue ('target', int(obj.properties.attributes['target'].value))
('target' is object's test var\property in Tiled)
Actualy, this last line is random, I have no idea what to do