def minutes(time):
    """Convert a race time into minutes

    given a time in the format hh:mm:ss, return the number of minutes"""
    parts = [int(x) for x in time.split(':')]
    return parts[0] * 60 + parts[1] + parts[2]/60.