python check if string is integer