doc: revisions to context.py