python code for the raspberry pi