Heat Transfer Functions in Python