Python Code for RaspberryPI