refactor, use python instead of makefile for bootstrap