Replaces the name in the module dictionary with the inputted replace \
        value.
        
        :param      module  | <str> || <module>
                    name    | <str>
                    repl    | <variant>
        
        :return     <bool>

def refactor(module, name, repl):
        """
        Replaces the name in the module dictionary with the inputted replace \
        value.
        
        :param      module  | <str> || <module>
                    name    | <str>
                    repl    | <variant>
        
        :return     <bool>
        """
        name = nstr(name)

        # import a module when refactoring based on a string
        if isinstance(module, basestring):
            try:
                module = __import__(module)
            except ImportError:
                logger.exception('Could not import module: %s' % module)
                return False

        try:
            glbls = module.__dict__
        except AttributeError:
            err = '%s cannot support refactoring.' % module.__name__
            logger.exception(err)
            return False

        if name in glbls:
            # refactor the value
            glbls[name] = repl

            return True
        else:
            err = '%s is not a member of %s.' % (name, module.__name__)
            logger.warning(err)
            return False