courant.py: clean up docstrings and comments