python check if string is decimal or int