How To Check If A Variable Is Not A Number In Python