python temp sensor script fixes