Python Determine If String Is Int Or Float