Many minor fixes on the generated code, thanks to Pylint