figured out corner cases, started translating from generate_vectors.py in the python-mnemonic project