doc: revisions to lang.py (5)