Automatically determine whether or not the private key is a compressed private key, and have the to_bin(), to_hex(), and to_wif() methods return either a compressed or uncompressed private key as a result.
Automatically determine whether or not the private key is a compressed
private key, and have the to_bin(), to_hex(), and to_wif() methods
return either a compressed or uncompressed private key as a result.

blockstack/pybitcoin