Access to an object

I have the following problem. An object O1 is connected with a Python script via the LogicBricks. There is another object O2 that has its own LogicBricks. Is it possible to access to object O2 within the Python script connected with object O1?
Do anybody know how to solve the problem?
Thank you in advance for an advice.