Remove user from encryption

def delete_user(self, recipient_email):
        """
        Remove user from encryption
        """
        emailid_list = self.list_user_emails()
        if recipient_email not in emailid_list:
            raise Exception("User {0} not present!".format(recipient_email))
        else:
            emailid_list.remove(recipient_email)
            self.y = self.decrypt()
            self.encrypt(emailid_list=emailid_list)