def next_workday(dt):
 dt += timedelta(days=1)
 while (dt.weekday() > 4):
  dt += timedelta(days=1)
 return dt

def next_workday ( dt ) : dt += timedelta ( days = 1 ) while ( dt . weekday ( ) > 4 ) : dt += timedelta ( days = 1 ) return dt
returns next weekday used for observances .