moved the blinker code to python