ported to Python 3 and JNGL 1.1