Added check for python version > 3.2 for the temperature function.