Convert WIF to private key
converts WIF private key back to basic private key format
import hashlib
import base58
import binascii

private_key_WIF = input(&quot;WIF: &quot;)
first_encode = base58.b58decode(private_key_WIF)
private_key_full = binascii.hexlify(first_encode)
private_key = private_key_full[2:-8]
print(private_key)