Update temp_log_w_mat_control.py

refinements to check for GPIO status, to check current mat status and respect it(don't try to turn off if already off, emailing enabled