Cleaning up python wrapgen code some more.

* Adding sanitizer for pointer return types.
* Fixing bugs in MDLDescription object.
Cleaning up python's pointer handling.