def get_shape_type(name):
    """Translate the shape type (Polygon, Polyline, Point) into a, l, or p."""
    types = {"Polygon": "a", "Polyline": "l", "Point": "p"}
    try:
        return types[name]
    except KeyError:  # Key not found
        print("Unknown shape type")
        return -1