Script error : unsubscriptable object

Hello.

In BGE I want to send specific message with body, witch is name of some object.
Here it is the sender:


import GameLogic

from types import *


cont = GameLogic.getCurrentController()
owner = cont.getOwner()
target = owner.target
mouseLeft = cont.getSensor("mouseLeft")
act = cont.getActuator("actionMessage")

if mouseLeft.isPositive() == True and target != "none":
    act.setBodyType(False)
    act.setBody(target)
    act.setSubject("action")
    GameLogic.addActiveActuator(act,True)

And receiver has:


import GameLogic
from types import *

cont = GameLogic.getCurrentController()
owner = cont.getOwner()
sensor = cont.getSensor("messageAction")
target = sensor.getBodies()[0]
print target

The problem is at .getBodies:

Original exception was:
Traceback (most recent call last):
  File "Action", line 8, in ?
TypeError: unsubscriptable object

If I try to print getBodies() list it prints “[OBBox]” for example. Thats nice, but why I cant get one object as string from that list? A have seen that in examples though…

Thanks.