# Add time window constraints for each vehicle start node.
for vehicle_id in range(data['num_vehicles']):
index = routing.Start(vehicle_id)
#sets time window for each depot
if vehicle_id < 20:
time_dimension.CumulVar(index).SetRange(data['time_windows'][0][0],data['time_windows'][0][1])
elif vehicle_id < 40:
time_dimension.CumulVar(index).SetRange(data['time_windows'][1][0],data['time_windows'][1][1])
... continue conditional statements for all vehicles ids....
#set maximum travel time for the vehicle (does not include the time for starting at a non 0 time), 720 minutes in this case
time_dimension.SetSpanUpperBoundForVehicle(720, vehicle_id)