add all-python version of read_lexicon