Python code to interact with the Raspberry Pi through the web