def get_all_script_names(self):
        """ This function used for completer, whitespaces in names are escaped"""
        _, current_state = self.get_current_worker_and_state()
        all_names = []
        for path in ['.'] + current_state.environ_get('BIN_PATH').split(':'):
            path = os.path.expanduser(path)
            if os.path.exists(path):
                for f in os.listdir(path):
                    if not os.path.isdir(f) and (f.endswith('.py') or f.endswith('.sh')):
                        all_names.append(f.replace(' ', '\\ '))
        return all_names
 This function used for completer, whitespaces in names are escaped
system/shruntime.py