old_contents: """Loads base config and exports package constants."""
  from configparser import ConfigParser
  import logging
  from os.path import expanduser
  
  LOG = logging.getLogger(__name__)
  
  
  
  def find_config():
      """Looks for config in config_locations. If not found, gives a fatal error
  
      Returns:
          ConfigParser: found configuration file
      """
      config_locations = [
          './.foremast/foremast.cfg',
          expanduser('~/.foremast/foremast.cfg'),
          '/etc/foremast/foremast.cfg',
          ]
      config = ConfigParser()
  
      cfg_file = config.read(config_locations)
  
      if not cfg_file:
          LOG.error('No config found in the following locations: {0}\n'.format(config_locations))
  
      return config
  
  #Load in consts from config
  config = find_config()
  API_URL = config['base']['gate_api_url']
  GIT_URL = config['base']['git_url']
  GITLAB_TOKEN = config['credentials']['gitlab_token']
  SLACK_TOKEN = config['credentials']['slack_token']
  DOMAIN = config['base']['domain']
  ENVS = set(config['base']['envs'].split(','))
  REGIONS = set(config['base']['regions'].split(','))
  
  ASG_WHITELIST = set(config['whitelists']['asg_whitelist'].split(','))
  
  HEADERS = {
      'accept': '*/*',
      'content-type': 'application/json',
      'user-agent': 'foremast',
  }
  LOGGING_FORMAT = ('%(asctime)s [%(levelname)s] %(name)s:%(funcName)s:'
                    '%(lineno)d - %(message)s')
  
new_contents: """Loads base config and exports package constants."""
  from configparser import ConfigParser
  import logging
  from os.path import expanduser
  
  LOG = logging.getLogger(__name__)
  
  
  
  def find_config():
      """Looks for config in config_locations. If not found, gives a fatal error
  
      Returns:
          ConfigParser: found configuration file
      """
      config_locations = [
          './.foremast/foremast.cfg',
          expanduser('~/.foremast/foremast.cfg'),
          '/etc/foremast/foremast.cfg',
          ]
      config = ConfigParser()
  
      cfg_file = config.read(config_locations)
  
      if not cfg_file:
          LOG.error('No config found in the following locations: %s\n', config_locations)
  
      return config
  
  #Load in consts from config
  config = find_config()
  API_URL = config['base']['gate_api_url']
  GIT_URL = config['base']['git_url']
  GITLAB_TOKEN = config['credentials']['gitlab_token']
  SLACK_TOKEN = config['credentials']['slack_token']
  DOMAIN = config['base']['domain']
  ENVS = set(config['base']['envs'].split(','))
  REGIONS = set(config['base']['regions'].split(','))
  
  ASG_WHITELIST = set(config['whitelists']['asg_whitelist'].split(','))
  
  HEADERS = {
      'accept': '*/*',
      'content-type': 'application/json',
      'user-agent': 'foremast',
  }
  LOGGING_FORMAT = ('%(asctime)s [%(levelname)s] %(name)s:%(funcName)s:'
                    '%(lineno)d - %(message)s')
  
subject: Use lazy logging