nxt-python is a python driver/interface for the Lego Mindstorms NXT robot.
From nxt-python homepage:
nxt-python is a python driver/interface for the Lego Mindstorms NXT robot.
nxt-python works by sending the direct commands detailed in LEGO's "Bluetooth Development Kit" to the nxt brick, and on occasion providing a greater level of abstraction.
In the sensor module, support has been added for many third-party sensors using protocol information from the sensors' manufacturers or by reverse engineering demo programs for other languages.