updated printing test for latex representation of TensorProduct
pep8 compliance fixes