Use offsetof() rather than icky homemade equivalent
[Python] Fix clang++ warning in generated wrapper code.