Fixing python wrapper to handle untyped pointers.