Python Api For Encryption Key Definition