def get_coordinates_from_token(token, mod):
    """ A function which takes a mod and a token, finds the token in the mod,
    and then returns the coordinate (tuple) at which the token is found. If it
    is not found, it returns None. """
    for coordinates, token_in_mod in mod.items():
        # No possibility of duplicate tokens. If found, return the token.
        if token_in_mod == token:
            return coordinates
    return None