code: def _magic_data(filename=os.path.join(here, 'magic_data.json')):
      
      with open(filename) as f:
          data = json.load(f)
      headers = [_create_puremagic(x) for x in data['headers']]
      footers = [_create_puremagic(x) for x in data['footers']]
      return headers, footers
docs: Read the magic file