If a class does not inherit `object`, the behavior is slightly different between python 2 and 3.

In any case, sympy objects inherit `Basic`, and use `__new__` as constructor.