Manipulate BGE logic bricks through python Is it (if at all) possible in Blender 2.6+? 

If not, will future versions of Blender support it?

I see some old posts (this and this) saying that it is not possible. However, I found a recent post referring to operators under bpy.ops.logic package that allowed me to add sensors and controllers from python.

bpy.ops.logic.sensor_add(type='ALWAYS', object=my_obj.name)
bpy.ops.logic.controller_add(type='LOGIC_AND', object=my_obj.name)


However I am not able to find any way to link them from python. I tried following (but did not work):

new_controller = my_obj.controllers[-1]
new_sensor = my_obj.sensors[-1]


It throws AttributeError saying that object has no attribute 'controllers' :-/
This is done using the bpy.types.Sensor.link method, e.g.

import bpy

obj = bpy.context.object
sensors = obj.game.sensors
controllers = obj.game.controllers
actuators = obj.game.actuators

bpy.ops.logic.sensor_add(type="ALWAYS", object=obj.name)
bpy.ops.logic.controller_add(type="LOGIC_AND", object=obj.name)
bpy.ops.logic.actuator_add(type="ACTION", object=obj.name)

# Newly added logic blocks will be the last ones:
sensor = sensors[-1]
controller = controllers[-1]
actuator = actuators[-1]

sensor.link(controller)
actuator.link(controller)