Python temperature controller