'Init some variables and files.
Create the URI opener.'

def __init__(self):

    manager = fresh_output_manager_inst()
    log_sink_factory(manager.get_in_queue())
    om.out.debug(('Created    new    w3afCore    instance:    %s' % id(self)))
    self._home_directory()
    self._tmp_directory()
    self.exception_handler = ExceptionHandler()
    self.profiles = CoreProfiles(self)
    self.plugins = CorePlugins(self)
    self.status = w3af_core_status(self)
    self.target = CoreTarget()
    self.strategy = CoreStrategy(self)
    om.manager.set_w3af_core(self)
    self.uri_opener = ExtendedUrllib()
    self._first_scan = True
