Makefile Error Handling In Python