python check if string value is integer