Moved static helper functions from generated code to wrapperbase
Merge branch 'python-refactoring' into dev