  import logging
import os
from nucypher.characters.lawful import Alice
from nucypher.characters.lawful import Bob
from nucypher.characters.lawful import Doctor
from nucypher.characters.lawful import SubscriptionManagerPayment
from nucypher.characters.lawful import Policy
from nucypher.characters.lawful import PolicyLabel
from nucypher.characters.lawful import PolicyDetails
from nucypher.characters.lawful import PolicyPublicKey
from nucypher.characters.lawful import PolicyExpirationDate
from nucypher.characters.lawful import PolicyMOutNShares
from nucypher.characters.lawful import PolicyRecipient
from nucypher.characters.lawful import PolicySender
from nucypher.characters.lawful import PolicySigner
from nucypher.characters.lawful import PolicyDomain
from nucypher.characters.lawful import PolicyEthereumProviderURI
from nucypher.characters.lawful import PolicyPaymentMethod
from nucypher.characters.lawful import PolicyAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.lawful import PolicyStartLearningLoop
from nucypher.characters.lawful import PolicyGeneratePolicyLabel
from nucypher.characters.lawful import PolicyGetPolicyPublicKey
from nucypher.characters.lawful import PolicyGeneratePolicy
from nucypher.characters.lawful import PolicySendPolicyToNetwork
from nucypher.characters.lawful import PolicyStoreAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.lawful import PolicyStartLearningLoop
from nucypher.characters.lawful import PolicyGeneratePolicyLabel
from nucypher.characters.lawful import PolicyGetPolicyPublicKey
from nucypher.characters.lawful import PolicyGeneratePolicy
from nucypher.characters.lawful import PolicySendPolicyToNetwork
from nucypher.characters.lawful import PolicyStoreAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.lawful import PolicyStartLearningLoop
from nucypher.characters.lawful import PolicyGeneratePolicyLabel
from nucypher.characters.lawful import PolicyGetPolicyPublicKey
from nucypher.characters.lawful import PolicyGeneratePolicy
from nucypher.characters.lawful import PolicySendPolicyToNetwork
from nucypher.characters.lawful import PolicyStoreAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.lawful import PolicyStartLearningLoop
from nucypher.characters.lawful import PolicyGeneratePolicyLabel
from nucypher.characters.lawful import PolicyGetPolicyPublicKey
from nucypher.characters.lawful import PolicyGeneratePolicy
from nucypher.characters.lawful import PolicySendPolicyToNetwork
from nucypher.characters.lawful import PolicyStoreAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.lawful import PolicyStartLearningLoop
from nucypher.characters.lawful import PolicyGeneratePolicyLabel
from nucypher.characters.lawful import PolicyGetPolicyPublicKey
from nucypher.characters.lawful import PolicyGeneratePolicy
from nucypher.characters.lawful import PolicySendPolicyToNetwork
from nucypher.characters.lawful import PolicyStoreAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.lawful import PolicyStartLearningLoop
from nucypher.characters.lawful import PolicyGeneratePolicyLabel
from nucypher.characters.lawful import PolicyGetPolicyPublicKey
from nucypher.characters.lawful import PolicyGeneratePolicy
from nucypher.characters.lawful import PolicySendPolicyToNetwork
from nucypher.characters.lawful import PolicyStoreAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.lawful import PolicyStartLearningLoop
from nucypher.characters.lawful import PolicyGeneratePolicyLabel
from nucypher.characters.lawful import PolicyGetPolicyPublicKey
from nucypher.characters.lawful import PolicyGeneratePolicy
from nucypher.characters.lawful import PolicySendPolicyToNetwork
from nucypher.characters.lawful import PolicyStoreAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.lawful import PolicyStartLearningLoop
from nucypher.characters.lawful import PolicyGeneratePolicyLabel
from nucypher.characters.lawful import PolicyGetPolicyPublicKey
from nucypher.characters.lawful import PolicyGeneratePolicy
from nucypher.characters.lawful import PolicySendPolicyToNetwork
from nucypher.characters.lawful import PolicyStoreAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.lawful import PolicyStartLearningLoop
from nucypher.characters.lawful import PolicyGeneratePolicyLabel
from nucypher.characters.lawful import PolicyGetPolicyPublicKey
from nucypher.characters.lawful import PolicyGeneratePolicy
from nucypher.characters.lawful import PolicySendPolicyToNetwork
from nucypher.characters.lawful import PolicyStoreAdditionalInformation
from nucypher.characters.lawful import PolicyGrantAccess
from nucypher.characters.lawful import PolicyGenerateHeartRateSamples
from nucypher.characters.lawful import PolicySaveHeartRateSamples
from nucypher.characters.lawful import PolicyGetPublicKeys
from nucypher.characters.lawful import PolicyCreateInstance
from nucypher.characters.