Added mnemonic.py from electrum.
Made mnemonic.py compatible with python 3.