Fixed compatibility issues with Jython 2.7 beta 3