'Deserializer.'

def __setstate__(self, data):

    class_name = data.get('class_name')
    package = data.get('package')
    config = data.get('config')
    subdir = data.get('subdir')
    aliases = data.get('aliases')
    base_class = data.get('base_class')
    PATH_CACHE[class_name] = data.get('PATH_CACHE')
    PLUGIN_PATH_CACHE[class_name] = data.get('PLUGIN_PATH_CACHE')
    self.__init__(class_name, package, config, subdir, aliases, base_class)
    self._extra_dirs = data.get('_extra_dirs', [])
    self._searched_paths = data.get('_searched_paths', set())
