Subtle variability between this program output in C and the program output in Python is more than likely due not to errors in the equations in the programs, but calculating style differences in the two different languages, i.e. truncating. To see the python program and the models used, read my paper Two Layer Convective Model For Planetary Climate.