initial python implementation

see http://www.wrightfully.com/garagepi-my-raspberry-pi-playground/