Auto generate makefile with few python lines