python program for read/write SPI flash memory on raspberry Pi