Sure - I don’t mind showing my code. I created an extra thread for this.
My code is supposed to run on the pi2, so there is definitely a performance issue.
What makes the jython implementation even more elegant is that the dictionary are thread save so I don’t have to worry about locks and concurrency any more!