title: Add java class to jython as jython import module
body: <p>I am using jython interpreter programmatically (PythonInterpreter) in my java application, and I'd like to add a specific class, eg. MyJythonLib as a Jython import module so that my Jython script could have something like:</p>
  
  <pre><code>import MyJythonLib
  a = MyJythonLib.getStuff()
  </code></pre>
  
  <p>where MyJythonLib.java is </p>
  
  <pre><code>public class MyJythonLib
  {
      private Object stuff;
      public Object getStuff()
      {
          return stuff;
      }
  }
  </code></pre>
  
  <p>How do I set this class to be a module for my Jython interpreter?</p>