title: Passing java object to python
body: <p>I am prototyping an interface to our application to allow other people to use python, our application is written in java.  I would like to pass some of our data from the java app to the python code but I am unsure how to pass an object to python.  I have done a simple java->python function call using simple parameters using Jython and found it very useful for what I am trying to do. Given the class below, how can I then use it in Python/Jython as an input to a function/class:</p>
  
  <pre><code>public class TestObject 
  {
     private double[] values;
     private int length;
     private int anotherVariable;
  
     //getters, setters
   }
  </code></pre>