Home automation with python