Don't import sympy in isympy

This fixes issue 3949.