Makefile: improve test_python and test_pure_python