Python utility to convert between words and mnemonic numbers