How To Check If Variable Is Nan Python