Added handling to make sure all rows have the same length.

@czue Using the len(rows_dict) will give number of rows(like e.g. 3 in case when we group by leadership), the problem exists because one of row has different number of practices for year 2014, so I need to found length of practices of each row. Let me know If that make sense.