import xrange from sympy core