simple makefile and python error handling