SymPy in Class