Clean Makefile and base.py