Python Check If Value Is A Number