sympy/sympy — pull request #8673 by Upabjojr (2014-12-21 18:02:52+00:00)
Title: Added class Tensor

With this PR, the AST of *sympy.tensor.tensor* is modified. Now `TensMul` has `Tensor` objects in its args.
This means that the expression tree in at last the same as the output of SymPy's printer, and first of all, the expression tree is now correct!

Tests are mostly unmodified.

After this PR is merged, it will be possible to use term-rewriting tools on tensors.

This is a first step towards a more complete system (possibly including partial/covariant derivatives as a next step).