SymPy 0.7.3 compatibility resolved