How can i tell python to stop printing something after a specific amount of time?