Even better, I'll go ask a physicist.
Ooh, I'm a physicist!
Hey hugh3, does this violate the second law of thermodynamics?
Uhh, nope, not at all! You can always extract some useful work when transferring heat from a hot bath to a cold bath.
Gee, thanks hugh3!