add a python code to detect button interrupt, 2nd time