Python code for accessing the i2c and spi data from the pain machine.