py way of controlling blink