Python Kill Process Terminal, How can I kill the loop process once the timer is done? .