finish retrofitting ngram_utils.py to conform to new file structure