code: def _designspace_locations(self, designspace):
          
  
          maps = []
          for elements in (designspace.sources, designspace.instances):
              location_map = {}
              for element in elements:
                  path = _normpath(element.path)
                  location_map[path] = element.location
              maps.append(location_map)
          return maps
docs: Map font filenames to their locations in a designspace.