def __init__(self, library, functions):
        '''
        Class constructor.

        @library   - Library name (e.g., 'magic' for libmagic), or a list of names.
        @functions - A dictionary of function names and their return types (e.g., {'magic_buffer' : str})

        Returns None.
        '''
        self.settings = binwalk.core.settings.Settings()
        self.library = ctypes.cdll.LoadLibrary(self.find_library(library))
        if not self.library:
            raise Exception(library % "Failed to load library '%s'")

        for function in functions:    
            f = FunctionHandler(self.library, function)
            setattr(self, function.name, f.run)
dataset/ETHPy150Open devttys0/binwalk/src/binwalk/core/C.py/Library.__init__/swapped operands of `%`