code: def _closest_location(self, location_map, target):
          
  
          def dist(a, b):
              return math.sqrt(sum((a[k] - b[k]) ** 2 for k in a.keys()))
  
          paths = iter(location_map.keys())
          closest = next(paths)
          closest_dist = dist(target, location_map[closest])
          for path in paths:
              cur_dist = dist(target, location_map[path])
              if cur_dist < closest_dist:
                  closest = path
                  closest_dist = cur_dist
          return closest
docs: Return path of font whose location is closest to target.