By the way, I can add if you need 3V, and not 0V to trigger your smps to turn on, then swap these start.py and stop.py so it looks like this:
run_this_before_entering_active_state = “home/pi/pyh/start.py";
run_this_after_exiting_active_state = “home/pi/pyh/stop.py";