2d array of objects in python,nodes = [[Node() for j in range(cols)] for i in range(rows)]