Improved Java exception messages on Python errors (issue #39)