code: def get_shell(self, environ):
          
          command = self.headings[self.default_heading].get('shell')
          if not command and os.name != 'nt':
              command = environ.get('SHELL', '')
          command = shlex.split(command) if command else None
          return command
docs: Find a command to run.