fixed python exception reporting when not in shared mode

git-svn-id: https://svn.apache.org/repos/asf/lucene/pylucene/trunk@1628857 13f79535-47bb-0310-9956-ffa450edef68