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