Java Timer Function In Python Example