old_contents: import analysis_apiclient  # noqa
  from st2actions.runners.pythonrunner import Action
  
  
  class BaseAction(Action):
      def __init__(self, config):
          super(BaseAction, self).__init__(config)
          self.client = self._init_client()
  
      def _init_client(self):
          url = self.config.get('url', 'https://analysis.lastline.com')
          key = self.config.get('key')
          api_token = self.config.get('api_token')
  
          if not key:
              return ValueError('Missing "key" config option')
          if not api_token:
              return ValueError('Missing "api_token" config option')
  
          return analysys_apiclient.AnalysisClient(url, key, api_token)  # noqa
  
new_contents: from analysis_apiclient import AnalysisClient # noqa
  from st2actions.runners.pythonrunner import Action
  
  
  class BaseAction(Action):
      def __init__(self, config):
          super(BaseAction, self).__init__(config)
          self.client = self._init_client()
  
      def _init_client(self):
          url = self.config.get('url', 'https://analysis.lastline.com')
          key = self.config.get('key')
          api_token = self.config.get('api_token')
  
          if not key:
              return ValueError('Missing "key" config option')
          if not api_token:
              return ValueError('Missing "api_token" config option')
  
          return AnalysisClient(url, key, api_token)  # noqa
  
subject: reduce import to pass