answered 11 years ago
Ok, I fixed it with the following code:
for i in range(0,2*n-1): for j in range(0,2*n-1): w[i,j]=3;