<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _load_py(self, namespace, config_file):
 """ Load scripted configuration. """

        if config_file and os.path.isfile(config_file):
            self.LOG.debug("Loading %r..." % (config_file,))
            exec(compile(open(config_file).read(), config_file, 'exec'),  # pylint: disable=exec-used
                 vars(config), namespace)
        else:
            self.LOG.warning("Configuration file %r not found!" % (config_file,))