We have a requirement to run pyeapi in jython. I think addressing this issue may also address issue #87.