> IMHO I don't see another alternative to match the above assertion.

I can suggest an alternative.  Please read [this](http://docs.python.org/3/reference/expressions.html#comparisons).

> And fgrep -R 'assert str(' sympy/|wc -l gives me 675 as output.

Sometimes it's ok, for example for printing tests.