All of the examples in the Jython documentation here require that the the Python class import the corresponding Java interface, for example:
# A python module that implements a Java interface to
# create a building object
from org.jython.book.interfaces import BuildingType
class Building(BuildingType):
def __init__(self, name, address, id):
self.name = name
self.address = address
self.id = id
...
I would rather not couple my Python code to my Java code. Is there a way I can instantiate the Python class from Java without modifying it to point to a Java interface?