Jython is stuck at Python 2.7 only, so any Python3 specific stuff will have to be modified (if at all possible).
If you need to stick with Python 3, maybe try HabApp?
Or if you want to keep it all internal to OH, perhaps use the HTTP and MQTT bindings, together with a more simple Cron triggered rule?