So, in this project I used the MCP23017 (as many of you know) it’s a great little chip that can add a lot of functionality to your Raspberry Pi. I wrote this python module for talking to the chip, and if anybody wants to use it, feel free.
First, create an instance of the class, and then it has get_bit, set_bit, get_port, set_port, and so on. It needs the i2c drivers, and the python-smubus modules.
If somebody can use it, awesome.