How To Check If Variable Is Not Defined In Python