courant.py: cleanup docstrings and comments