python check if input is string or int