Ap203e2 fixes

After applying these I get valid / syntactically correct Python code for AP203e2.

The only problems I'm left with is ordering of Defined Types inheriting from simple types in the output and suitable treatment of ordering parent classes to avoid MRO issues.  Both are easily fixed manually for the moment.