Update python2/base.py