.gitignore: ignore byte-compiled Python files
Makefile: "optimize" Python bytecode when compiling
Makefile: create "build" dir so we can build buildstamps there
{core,util}.py: moved `check_call` to util.py