Capsule constructor + wrappers for native routines