base.py unused imports removed