Building multi-phase initialization module which works in subinterpreters

Hello,
I want to wrap a c++ object in a module which should work in an embedded python with multiple interpreters.
How can i create it?
Does someone has a working example?
Thanks!