def get_sym(pair):
    """
    reformats a tuple of (team, rival) so that the first element is smaller than the other
    (by convention, this is how we represent a match without home-away status).
    """
    if pair[0] > pair[1]:
        return pair[1], pair[0]
    else:
        return pair