I have tried the script and edited what you mentioned BIP44 to BIP49 and it printed the same yrpv as the one generated by Electrum GUI.
Sample BIP39 seed:
random arctic maze lazy chase cattle need rural census beauty green seriesResult:
yprvAJZLm5mo51QHF3SjP4LsmojahZfJ421Q11BvRVJ4mTdUb7eszhDkDexaq9QpZnzkvQMGd2exPBo f4NWQ9H6hfn35KdR9q71w66443XnuPuWIt also generated the same set of "3" addresses when used per his example:
Command:
BIP39-BIP49.py random arctic maze lazy chase cattle need rural census beauty green series| python electrum-3.3.8/run_electrum -w wallet_test_delete_cli restore -Console command - getmasterprivate(): same yprv as the above.
So Electrum should generate the same addresses if it's based from that master private key.
Here's what I've edited:
#converts bip39 mnemonic to bip49 first account xprv
-snip-
k = keystore.from_bip39_seed( mnemonic, "", "m/49'/0'/0'" )
Just the 'comment' and the 'derivation path' and it worked.
Any clue what might be it?
The 'wallet file' will be created in the same folder as the script, perhaps you've opened a different wallet with a similar name.