sympify replace input
Merge pull request #2122 from smichr/replace

sympify replace input