use switch for typeException in python generator
Merge branch 'master' of github.com:Angayani/GOOL