I don't know the problem, but when you write sum(j*v[3,j] for i in range(0,7)) are you sure that you do not confuse i and j ?
I don't know the problem, but when you write things like sum(j*v[3,j] for i in range(0,7)) are you sure that you do not confuse i and j ?