Add some dev scripts for decoding and encoding lexicon.