Python Check If String Is Digit