Just to let you know, ZPyWallet also has brainwallet generation capability, and even for extended private keys, but I haven't written the documentation for that yet.
Good to know that!
I'm gonna take a look at it.
BTW which type of brainwallet algorithm did you choose for that project?
Traditional SHA2 over (user typed) passphrase?
Or
Warp Wallet type (Key Derivation Function: Argon2id, scrypt, bcrypt, PBKDF2)?
You might have seen the code by now, but the brainwallet algorithm used is a standard single round of SHA256.
In my opinion, brainwallet algorithms are too vulnerable to try to secure with any kind of KDF, since the input is often predictable.