To avoid circular imports, I had to put the base classes all within a single module, which I named `base.py`.