def get_rank(ranks, tid):
    """ Find tid in a jagged array of ranks in a given week. Return None if unranked """
    for irank,ts in enumerate(ranks):
        if tid in ts:
            return irank+1
    return None