tempstat.py: modified to save json file.