python script that runs light switch