def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def _every_weekday(job, weekday, loop=None):
    return every(job, timedelta=timedelta(days=7), start_at=_nearest_weekday(weekday), loop=loop)