how about some refactoring...notice that you have the same 4 expressions every time on the rhs

also, this might be useful:

```
>>> symbols('A[1:4\,1:4]')
(A[1,1], A[1,2], A[1,3], A[2,1], A[2,2], A[2,3], A[3,1], A[3,2], A[3,3])
```