My modifications to "A computer algebra system written in pure Python"