Improve logging in vocabcompiler.py