Please add a small docstring.  Really, the functions in risch should be doctested too, so that people can more easily get involved in the algorithm.  You might think about doing that as you add more functions to the algorithm.