Update base.py

inheritance
Merge pull request #1777 from b3ni/master

Update base.py