added module qual for JavaException, and fixed code for python2.6 besides python2.7