code: def reset_avaliable(self, folder):
          
          try:
              self.list_script_model.removeRows(0, self.list_script_model.rowCount())
              if self.cmb_select_type.currentText() == 'Script':
                  self.avaliable = find_scripts_in_python_files(folder)
              elif self.cmb_select_type.currentText() == 'Instrument':
                  self.avaliable = find_instruments_in_python_files(folder)
              self.fill_list(self.list_script, self.avaliable.keys())
              for key in self.avaliable.keys():
                  self.error_array.update({key: ''})
          except Exception:
              msg = QtWidgets.QMessageBox()
              msg.setText("Unable to parse all of the files in this folder to find possible scripts and instruments. There are non-python files or python files that are unreadable. Please select a folder that contains only pylabcontrol style python files.")
              msg.exec_()
docs: Resets the dialog box by finding all avaliable scripts that can be imported in the input folder
          :param folder: folder in which to find scripts