https://github.com/richardkiss/pycoin
However I'm not sure I understand how to do the following with that library:
1. Create a HD wallet (i.e. create a new Electrum wallet with seed and all that)
2. Create a new public key that is derived from that HD wallet, or from an existing wallet
My goal is to create a public address that can be presented to a customer on a website. The code will live on a remote server; I would like the public keys created to relate back to a private (offline) HD wallet.
Try this WP plugin that I released recently:
https://bitcointalksearch.org/topic/bitcoin-address-wordpress-plugin-900327
It's not bip32 compatible but will work with an Electrum MPK
You can use the shortcode or, if you know how to code php, call the get_address() function in your own plugin:
$address = $AbdBitcoinAddress->get_address();