Python Code for Raspberry Pi