Code used in my SciPy 2013 talk on Raspberry Pi Sensor and actuator control