finished most of buildcache.py...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>