def __unpad(string):
    """Removes padding from the provided string

    This function is the inverse of _pad such that unpad(pad(m)) = m
    Args:
        string (bytes): The block to unpad, may be arbitrary large.

    Returns:
        bytes: a bytes object created from the input string

    """
    pad_len = string[-1]
    return string[:-pad_len]