Only a simple class declaration/definition is generated in the "forward declarations" section, while the method bodies are generated later. This avoids problems of the helper class needing to access Python object structures that are going to be defined later. Some refactoring involved to accomplish this.