Time Range Python Example Code