Python Scheduled Thread Example Java