setup the flopy.mbase instance for use with multipler parameters.
        Changes model_ws, sets external_path and writes new MODFLOW input
        files

        Parameters
        ----------
        model : flopy.mbase
            flopy model instance
        org_model_ws : str
            the orginal model working space
        new_model_ws : str
            the new model working space

def setup_model(self,model,org_model_ws,new_model_ws):
        """ setup the flopy.mbase instance for use with multipler parameters.
        Changes model_ws, sets external_path and writes new MODFLOW input
        files

        Parameters
        ----------
        model : flopy.mbase
            flopy model instance
        org_model_ws : str
            the orginal model working space
        new_model_ws : str
            the new model working space

        """
        split_new_mws = [i for i in os.path.split(new_model_ws) if len(i) > 0]
        if len(split_new_mws) != 1:
            self.logger.lraise("new_model_ws can only be 1 folder-level deep:{0}".
                               format(str(split_new_mws)))

        if isinstance(model,str):
            self.log("loading flopy model")
            try:
                import flopy
            except:
                raise Exception("from_flopy_model() requires flopy")
            # prepare the flopy model
            self.org_model_ws = org_model_ws
            self.new_model_ws = new_model_ws
            self.m = flopy.modflow.Modflow.load(model,model_ws=org_model_ws,
                                                check=False,verbose=True,forgive=False)
            self.log("loading flopy model")
        else:
            self.m = model
            self.org_model_ws = str(self.m.model_ws)
            self.new_model_ws = new_model_ws

        self.log("updating model attributes")
        self.m.array_free_format = True
        self.m.free_format_input = True
        self.m.external_path = '.'
        self.log("updating model attributes")
        if os.path.exists(new_model_ws):
            if not self.remove_existing:
                self.logger.lraise("'new_model_ws' already exists")
            else:
                self.logger.warn("removing existing 'new_model_ws")
                shutil.rmtree(new_model_ws,onerror=pyemu.os_utils.remove_readonly)
                time.sleep(1)
        self.m.change_model_ws(new_model_ws,reset_external=True)
        self.m.exe_name = self.m.exe_name.replace(".exe",'')
        self.m.exe = self.m.version
        self.log("writing new modflow input files")
        self.m.write_input()
        self.log("writing new modflow input files")