clean up imports in main/tests/base.py