I have created Python classes by an XML schema file using generateDS2.12a. I am using these classes to create XML files. My module works well with a Python 2.7 environment.
Now, due to some reason my environment is changed to Python 3.0.0. Now when I try to export the XML object it is throwing me following error:

Function : export(self, outfile, level, namespace_='', name_='rootTag', namespacedef_='', pretty_print=True)


Error : s1 = (isinstance(inStr, basestring) and inStr or
NameError: global name 'basestring' is not defined

Is there a change I need to do to export XML in Python 3.0.0 or a new version of GenerateDS to be used for Python 3.0.0?
You could run generateDS to get your Python file then run, e.g.,
"2to3 -w your_python_file.py" to generate a Python 3 version of your generateDS file.
I'm went through the same process and I had luck with this. It looks to work just fine.
What version of generateDS is to be used for Python 3.0.0?