adding logging temperature to file via python