Use C API with Capsule Objects
Separate module initialisation and module build