VBA from/to Python


Hypothetical question.

Is it possible to pass on data from vba to python and get output.

I know you can use shell and get the output from python print() but is there a way to transfer objects, a binary stream or something like that?

Thanks in advance.