update base.py doc