Firmata.py presents an easy-to-use API for the firmata wire protocol commonly used with arduino boards. Firmata.py implements the entire protocol (including things like the Capabilities query and I2C).
Firmata.py is licensed under the Apache License, a copy of which is present in the LICENSE file included in this distribution.