I recommend running the pigpiod daemon and connecting to its socket interface from a long-lived asynchronous thread. The client-side python module for that project looks jython-compatible, but you might want to optimize it. Python’s socket module is notoriously laggy in jython.