def __getitem__(self, name):
    key = self.keys[name]
    if (not isinstance(key['public'], rsa.RSAPublicKey)):
        return {'private': decode(key['private']), 'public': decode(key['public'])}
    return key
def __getitem__(self, name):
    key = self.keys[name]
    if (not isinstance(key['public'], rsa.RSAPublicKey)):
        return {'private': decode(key['private']), 'public': decode(key['public'])}
    return key