def get_coords(object_, points):
    """Return coordinates for an object which is somewhere in a list of points."""
    return next(coords for coords, maybe_this_object in points if maybe_this_object == object_)