Calling PyDictWrapper#keys or PyDictWrapper#values in the context of Python 3 causes
RuntimeError: java.lang.ClassCastException: Can not convert non-list type to a list!
at org.jpy.PyObject.asList(PyObject.java:256)
at org.jpy.PyDictWrapper.keySet(PyDictWrapper.java:112)
Calling
PyDictWrapper#keys
orPyDictWrapper#values
in the context of Python 3 causesDictionary keys and values are views in Python 3.
https://blog.labix.org/2008/06/27/watch-out-for-listdictkeys-in-python-3