Fix Python module to read spi bus. Convert spi_read result to int.