Cleaning up makefile, python scripts.
Editing src/config.mk and tools/patterns.mk