use is_Foo once we know other is Basic
use is_Foo once we know other is Basic

After applying _sympify, we know that other.is_Basic is True so
we can use the is_* attributes:

>>> timeit('isinstance(a, Integer)','from sympy import S,Integer\na=S(3)')
0.21927933082330586
>>> timeit('a.is_Integer','from sympy import S,Integer\na=S(3)')
0.09357543617885256

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy