Python Scheduled Thread Example C