adding a timer for python