How to create a smart home with Python