python check if data type is string