'Unblind a message after cryptographic processing.
:Parameter M: The encoded message to unblind.
:Type M: byte string or long
:Parameter B: Blinding factor.
:Type B: byte string or long'

def unblind(self, M, B):

    wasString = 0
    if isinstance(M, types.StringType):
        M = bytes_to_long(M)
        wasString = 1
    if isinstance(B, types.StringType):
        B = bytes_to_long(B)
    unblindedmessage = self._unblind(M, B)
    if wasString:
        return long_to_bytes(unblindedmessage)
    else:
        return unblindedmessage
