adaptor.js sets model.modelPackage to model.name https://github.com/Mermade/openapi-codegen/blob/55246ec01def2f753e07e6b3bfb4bb824082d14d/adaptor.js#L821 As near as I can tell, the python template expects this to be the value from the modelPackage property in the config file.