check six.binary_type