Simplified lexicon_merge.py and now it gets input from stdin.