結果 : how to execute a function every x seconds in python