How about `IA = [0]*(row[0] + 1)`?