Raspbery Pi Python code to control my home