@macubear I don't know what you mean by the acronym MWE, sorry.
A bit more on terminology. You originally described something like common memory access, so I answered with something that involves combining python/C with the Maple kernel process in order to get a direct access to memory.
But you also used the terms "output" and "pipe", which seems more like a description of i/o between processes (...and in which context sockets seem to make more sense).
So I'm not really sure which you prefer (i/o or direct memory access) and what are the precise motivations.
In Maple a datatype=float rtable (Array, Vector, Matrix) stores its data as double precision floats in a contiguous block of memory, so access can be direct and efficient. But OpenMaple also has facilities for conversion of other scalar numeric types (ie. back and forth between Maple and C, say).
But I know little about "direct" python<->C interaction, or C "extension" to python.