Library for generating HD keys/addresses (ideally for python) I require a library that I can create (and later import) a HD master key, which I will use to generate hundreds of addresses for both testnet and mainnet!

Ideally, I need a python library (but had trouble of finding a good library for both testnet and mainnet addresses.

An example of how to create testnet addresses would be greatly appreciated (default functionality seems to be for mainnet, e.g. pybitcointools)

Good libraries for other languages are also very welcome!
Actually python library pycoin seems to be sufficient for both testnet and mainnet address. I had just missed it the first time I checked the library.

It also provides a powerful command line tool.