python check string contains only digits