how do you check if a string contains only numbers - python,str.isdigit()