CORBA architecture is the solution to your problem!!!!
Exactly, the "Omniorb" is a package or a distribution architecture of CORBA Technology, that conforms with C++ and Python programming language mappings, and solves problems like the one you mentioned !!!
This architecture is a bit more, or to better say a lot more, than that, and it could help you solve this problem. It is a bit complex, but for what it offers, on the end you will see that the problems you will come along solving them, this architecture will help you solve them all...
It is very difficult, but very very powerfull, especialy when working beyond your own process, on a different machine, and on a different Operating System over the network!
recomended link for documentation
http://omniorb.sourceforge.net/docs.html
recomended link for package download
http://omniorb.sourceforge.net/download.html
greetings from: CROATIA
by: icopec