python example for temperature