You will have a very difficult time, as I could imagine. The serialization of RMI and Java is very specific to Java. I don't know if anyone tried to implement this in python (I'm sure google knows), but it would be best to find an existing library.
As a side, I would look at how to find RMI in some part of the client side java interface (maybe this is some kind of python library ↔ java bridge?). Or maybe you can run your python in Jython and use the underlying jvm to process RMI materials.
source share