def _get_xsitype(pyclass):
if hasattr(pyclass,'<STR_LIT:type>') and type(pyclass.type) in _seqtypes:<EOL><INDENT>return pyclass.type<EOL><DEDENT>elif hasattr(pyclass,'<STR_LIT:type>') and hasattr(pyclass, '<STR_LIT>'):<EOL><INDENT>return (pyclass.schema, pyclass.type)<EOL><DEDENT>return (None,None)<EOL>
returns the xsi:type as a tuple, coupled with ZSI.schema