code: def read_locations(filename):
      
      data = ConfigParser()
      if filename == '-':
          data.read_file(sys.stdin)
      else:
          data.read(filename)
      if not data.sections():
          logging.debug('Config file is empty')
  
      locations = {}
      for name in data.sections():
          if data.has_option(name, 'locator'):
              latitude, longitude = utils.from_grid_locator(data.get(name,
                                                                     'locator'))
          else:
              latitude = data.getfloat(name, 'latitude')
              longitude = data.getfloat(name, 'longitude')
          locations[name] = (latitude, longitude)
      return locations
docs: Pull locations from a user's config file.
  
      Args:
          filename (str): Config file to parse
  
      Returns:
          dict: List of locations from config file