You cannot extend a java class but you can implement one or more java interfaces using the jproxy method. There has been a few posts on this in the past
here and
here and this is not something that has changed. I threw together a quick example showing how to implement the Comparator interface in python that you may be able to use as a starting point:
>>> from jep import jproxy
>>> from java.util import Collections
>>> from java.util import ArrayList
>>>
>>> list = ArrayList(['a', 'b', 'c', 'A', 'B', 'C'])
>>>
>>> class InsensitiveCharComparator(object):
... def compare(self, s1, s2):
... return ord(s1.lower()) - ord(s2.lower())
...
>>> pyComparator = InsensitiveCharComparator()
>>> jComparator = jproxy(pyComparator, ['java.util.Comparator'])
>>> str(list)
'[a, b, c, A, B, C]'
>>> Collections.sort(list, jComparator)
>>> str(list)
'[a, A, b, B, c, C]'