Change makefile to python