Python script to run on the Raspberry Pi