Home automation via a python REST api and Raspberry PI