Change str type for six.string_types to py3 compatibility