pycompat: when setting attrs, ensure we use sysstr
The custom module importer was making these bytes, so when we poked
values into self.__dict__ we had bytes instead of unicode on py3 and
it didn't work.
#require docutils gettext $ $TESTDIR/check-gendoc zh_CN checking for parse errors