Making python program to turn a raspberry pi into a domotic computer